-
Home Hosting Services Support About us Contact us
Site Search  


Knowledgebase

How can I check my disk space usage in SSH?

From the Unix prompt, typing 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 -h switch like this to see 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:

cd ~/public_html
du -ah --max-depth=1



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Quick Navigation

Client Login

Email

Password

Remember Me

Search