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?
2 Answers
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).
Try this
df -kh
it will show disk usage. and if you want to see for all drives then use
sudo fdisk -l
screen du -sh /home
to run it, press 'CTRL+A' then 'd' to detach, and runscreen -r
after your timeout to renew the session.