Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to find out the disk usage of /home however it's too slow, I get timeout sometimes (SSH) because it has lots of files. I am using du -sh /home and I was wondering if there's a faster way?

share|improve this question
6  
I don't think you'll be able to get a faster result. You can use screen to detach your session though and reconnect after the timeout. Use screen du -sh /home to run it, press 'CTRL+A' then 'd' to detach, and run screen -r after your timeout to renew the session. –  Kasius Sep 24 '12 at 14:40
    
Why not just run the command in the background as a job? –  Breakthrough Sep 24 '12 at 15:27
add comment

2 Answers

up vote 8 down vote accepted

If you have /home on a separate partition you can use df -h to show the disk usage. This should be pretty fast since the command doesn't summarize the disk usage of each file (as du does).

share|improve this answer
add comment

Try this

df -kh

it will show disk usage. and if you want to see for all drives then use

sudo fdisk -l

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.