How can I check my disk space usage in SSH?
Imprimer
0
From the Unix prompt, type the following:
du -s /home/youruser
This will give you a report back of the number of kilobytes (k) all files in your www directory add up to. You can also use the -h switch like this to see a human readable number in size:
du -sh /home/youruser
If you want to see the size of each folder under the current directory:
du -ah --max-depth=1
For example to check the usage of each folder in public_html: