Linux&Unix下面的磁盘相关命令

1.  du

If you want to see how much space each folder ocuppes:

du -sh *

s: summarize h: human readable *: list of folders

2.

Use the df command:

df -h

3.du -sh * | sort -nr | more .. to sort by the largest files first

4. du -ak /var | sort -n -r | page


你可能感兴趣的:(linux,du,disk,df)