How can I check my disk space usage in SSH?

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:

cd ~/public_html
du -ah --max-depth=1
  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How do I get SSH access enabled?

If SSH access is not enabled, please open a support ticket and we will activate it for you.

What are some basic Linux shell commands?

filename.txt Same as ls �alR, outputs the results to a filels *.html Lists all files ending with...

How do I change file permissions via SSH?

Using the CHMOD command:The letters u (for user), g (for group), and o (for other) are used with...

What is Telnet/SSH and do you allow it?

For security purposes, we do not enable Telnet at all and we only enable SSH access by request....

What is SCP / SFTP?

SCP and SFTP are both part of OpenSSH, the secure shell server we run. Do note that you cannot...