Friday, November 7, 2008

To find out the disk usage on Linux

For finding out the total disk usage:

du -sh

For finding out more about the disk usage try out the following command which is helpful in figuring out which directory has the largest file size and then dig deeper in the directory:

du -h --max-depth=1

Other useful command:

cd;du -k sort -nr more

No comments: