|
|
|
|
kbase home : SSH (shell) : How can I check my disk space usage in SSH?
|
|
|
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 Back to category List all categories |
|
Copyright © 2012 JaguarPC.com