Almost Over

Узнать размер директории в Linux через SSH

$ du -hs /etc
1
19M     /etc

$ du -chs /etc /root
1
2
3
19M     /etc
19M /root/
38M total

$ du -h --max-depth=1 /var/log
1
2
3
4
5
6
7
8
9
24K     /var/log/prelink
30M /var/log/audit
16M /var/log/sa
3.8M /var/log/nginx
6.0M /var/log/httpd
12K /var/log/ConsoleKit
40K /var/log/newrelic
4.0K /var/log/ntpstats
62M /var/log