du – 폴더 또는 파일의 용량 확인
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
[root@server html]# ll -h 합계 3.1M drwxr-xr-x 3 root root 4.0K 2016-03-08 18:09 code -rw-r--r-- 1 root root 1.5M 2016-05-20 15:30 filename.tar.gz.bz2 -rw-r--r-- 1 root root 1.5M 2016-05-20 15:33 filename.zip -rw-r--r--. 1 team free 418 2015-09-03 12:33 index.php -rw-r--r--. 1 team free 20K 2016-01-14 12:36 license.txt -rw-r--r--. 1 team free 7.2K 2016-05-07 04:26 readme.html -rw-r--r--. 1 team free 5.0K 2015-12-11 16:15 wp-activate.php drwxr-xr-x. 9 team free 4.0K 2015-11-07 09:00 wp-admin -rw-r--r--. 1 team free 271 2015-09-03 12:33 wp-blog-header.php -rw-r--r--. 1 team free 1.4K 2015-12-11 16:15 wp-comments-post.php -rw-r--r--. 1 team free 2.8K 2016-01-14 12:36 wp-config-sample.php -rw-rw-rw-. 1 team free 3.0K 2015-12-08 15:48 wp-config.php drwxr-xr-x. 7 team free 4.0K 2016-05-11 07:53 wp-content -rw-r--r--. 1 team free 3.3K 2015-09-03 12:33 wp-cron.php drwxr-xr-x. 16 team free 4.0K 2015-12-11 16:15 wp-includes -rw-r--r--. 1 team free 2.4K 2015-09-03 12:33 wp-links-opml.php -rw-r--r--. 1 team free 3.3K 2015-12-11 16:15 wp-load.php -rw-r--r--. 1 team free 33K 2016-01-14 12:36 wp-login.php -rw-r--r--. 1 team free 7.8K 2015-12-11 16:15 wp-mail.php -rw-r--r--. 1 team free 13K 2015-12-11 16:15 wp-settings.php -rw-r--r--. 1 team free 28K 2015-12-11 16:15 wp-signup.php -rw-r--r--. 1 team free 4.0K 2015-09-03 12:33 wp-trackback.php -rw-r--r--. 1 team free 3.0K 2015-12-11 16:15 xmlrpc.php [root@server html]# du -shc * 5.4M code 1.5M filename.tar.gz.bz2 1.5M filename.zip 4.0K index.php 20K license.txt 8.0K readme.html 8.0K wp-activate.php 7.0M wp-admin 4.0K wp-blog-header.php 4.0K wp-comments-post.php 4.0K wp-config-sample.php 4.0K wp-config.php 42M wp-content 4.0K wp-cron.php 13M wp-includes 4.0K wp-links-opml.php 4.0K wp-load.php 36K wp-login.php 8.0K wp-mail.php 16K wp-settings.php 28K wp-signup.php 4.0K wp-trackback.php 4.0K xmlrpc.php 70M 합계 |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
[root@server html]# du --help Usage: du [OPTION]... [FILE]... or: du [OPTION]... --files0-from=F Summarize disk usage of each FILE, recursively for directories. 긴 옵션에서 꼭 필요한 인수는 짧은 옵션에도 꼭 필요합니다. -a, --all write counts for all files, not just directories --apparent-size print apparent sizes, rather than disk usage; although the apparent size is usually smaller, it may be larger due to holes in (`sparse') files, internal fragmentation, indirect blocks, and the like -B, --block-size=SIZE use SIZE-byte blocks -b, --bytes equivalent to `--apparent-size --block-size=1' -c, --total produce a grand total -D, --dereference-args dereference only symlinks that are listed on the command line --files0-from=F summarize disk usage of the NUL-terminated file names specified in file F; If F is - then read names from standard input -H equivalent to --dereference-args (-D) -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) --si like -h, but use powers of 1000 not 1024 -k like --block-size=1K -l, --count-links count sizes many times if hard linked -m like --block-size=1M -L, --dereference dereference all symbolic links -P, --no-dereference don't follow any symbolic links (this is the default) -0, --null end each output line with 0 byte rather than newline -S, --separate-dirs do not include size of subdirectories -s, --summarize display only a total for each argument -x, --one-file-system skip directories on different file systems -X, --exclude-from=FILE exclude files that match any pattern in FILE --exclude=PATTERN exclude files that match PATTERN --max-depth=N print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize --time show time of the last modification of any file in the directory, or any of its subdirectories --time=WORD show time as WORD instead of modification time: atime, access, use, ctime or status --time-style=STYLE show times using style STYLE: full-iso, long-iso, iso, +FORMAT FORMAT is interpreted like `date' --help 이 도움말을 표시하고 끝냅니다 --version 버전 정보를 출력하고 끝냅니다 |