User Tools

Site Tools


diskusage
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


diskusage [2013/01/28 04:29] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Check Disk Usage in Linux ======
 +Once you are connected to the server via SSH, run the following command:
 +<file># df -h</file>
  
 +This will output the usage of each partition in the server. To list the size of a specific directory, run the following command:
 +<file># du -sh /home/</file>
 +
 +If you want to list all the subdirectory sizes under /home, run the following command:
 +<file># du -sh /home/**</file>
 +
 +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
diskusage.txt · Last modified: 2013/01/28 04:29 by 127.0.0.1