User Tools

Check Disk Usage in Linux

Once you are connected to the server via SSH, run the following command:

# df -h

This will output the usage of each partition in the server. To list the size of a specific directory, run the following command:

# du -sh /home/

If you want to list all the subdirectory sizes under /home, run the following command:

# du -sh /home/**

The output of the 'df' command will show you overall disk usage. To find out how much space a give directory is used us the 'du -s ' command.

– Main.FredPettis - 2011-02-17

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information