Thursday, April 15, 2010

Listing files by decreasing directory size / space left

Nautilus doesn't give you total size of folder. It just gives the number files in the folder.
If you want to see how is your disk being used, you can use

du -s * | sort -k 1 -rn

If you want to see hidden files,

du -s .* | sort -k 1 -rn

Unfortunately, I couldn't combine both of them and also couldn't use -h option of du
If you want to see size of different partition, you can also use

df -h

No comments:

Post a Comment