提供: すだちWiki
移動先: 案内検索

はじめに

ディレクトリ内のファイル容量を表示する。

実行例 

[root@host3 ~]# du -h
0       ./.subversion/auth/svn.simple
0       ./.subversion/auth/svn.username
0       ./.subversion/auth/svn.ssl.server
0       ./.subversion/auth/svn.ssl.client-passphrase
0       ./.subversion/auth
24K     ./.subversion
8.0K    ./.gnupg
0       ./.pki/nssdb
0       ./.pki
8.0K    ./.cpan/CPAN
632K    ./.cpan/sources/authors/id/B/BR/BRICAS
632K    ./.cpan/sources/authors/id/B/BR
632K    ./.cpan/sources/authors/id/B
144K    ./.cpan/sources/authors/id/E/EX/EXODIST
144K    ./.cpan/sources/authors/id/E/EX
144K    ./.cpan/sources/authors/id/E
776K    ./.cpan/sources/authors/id
996K    ./.cpan/sources/authors
1.5M    ./.cpan/sources/modules
2.6M    ./.cpan/sources
0       ./.cpan/prefs
・
・
・
・
[root@host3 ~]# du -h /var/www/html/press                                       
0       /var/www/html/press/wp-content/uploads/2014/07
0       /var/www/html/press/wp-content/uploads/2014/02
0       /var/www/html/press/wp-content/uploads/2014/06
0       /var/www/html/press/wp-content/uploads/2014/08
0       /var/www/html/press/wp-content/uploads/2014/04
0       /var/www/html/press/wp-content/uploads/2014/03
0       /var/www/html/press/wp-content/uploads/2014/01
0       /var/www/html/press/wp-content/uploads/2014/05
0       /var/www/html/press/wp-content/uploads/2014
0       /var/www/html/press/wp-content/uploads/2012/07
0       /var/www/html/press/wp-content/uploads/2012/02
0       /var/www/html/press/wp-content/uploads/2012/06
0       /var/www/html/press/wp-content/uploads/2012/08
0       /var/www/html/press/wp-content/uploads/2012/04
0       /var/www/html/press/wp-content/uploads/2012/03
0       /var/www/html/press/wp-content/uploads/2012/11
0       /var/www/html/press/wp-content/uploads/2012/12
0       /var/www/html/press/wp-content/uploads/2012/10
0       /var/www/html/press/wp-content/uploads/2012/01
556K    /var/www/html/press/wp-content/uploads/2012/09
0       /var/www/html/press/wp-content/uploads/2012/05
556K    /var/www/html/press/wp-content/uploads/2012
16K     /var/www/html/press/wp-content/uploads/avatars/2
12K     /var/www/html/press/wp-content/uploads/avatars/1
28K     /var/www/html/press/wp-content/uploads/avatars
96K     /var/www/html/press/wp-content/uploads/2010/06
24K     /var/www/html/press/wp-content/uploads/2010/03
224K    /var/www/html/press/wp-content/uploads/2010/12
344K    /var/www/html/press/wp-content/uploads/2010
36K     /var/www/html/press/wp-content/uploads/group-avatars/5
20K     /var/www/html/press/wp-content/uploads/group-avatars/1
56K     /var/www/html/press/wp-content/uploads/group-avatars
0       /var/www/html/press/wp-content/uploads/2011/07
0       /var/www/html/press/wp-content/uploads/2011/06
0       /var/www/html/press/wp-content/uploads/2011/08
2.8M    /var/www/html/press/wp-content/uploads/2011/04
28K     /var/www/html/press/wp-content/uploads/2011/03
348K    /var/www/html/press/wp-content/uploads/2011/11
0       /var/www/html/press/wp-content/uploads/2011/12
692K    /var/www/html/press/wp-content/uploads/2011/10
・
・