블로그 이미지
푸른_바람

Rss feed Tistory
IT/Tech 2010/04/27 17:14

리눅스 용량확인

df (disk free) : 디스크 용량확인
[code bash]
df --help
[/code]
사용법: df [옵션]... [파일]...
Show information about the file system on which each FILE resides,
or all file systems by default.

긴 옵션에서 꼭 필요한 인수는 짧은 옵션에도 꼭 필요합니다.
-a, --all include dummy file systems
-B, --block-size=SIZE use SIZE-byte blocks
--total produce a grand total
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si likewise, but use powers of 1000 not 1024
-i, --inodes 블록 사용 대신 inode 정보를 목록화
-k --block-size=1K 와 같음
-l, --local 로컬 파일 시스템만 목록화
--no-sync 사용량 정보를 얻어오기 전에 sync를 실행하지 않음 (기본값)
-P, --portability POSIX 출력 포맷을 사용
--sync 사용량 정보를 얻어오기 전에 sync를 실행
-t, --type=형식 지정한 형식의 파일 시스템만 목록화
-T, --print-type 파일 시스템 형식을 출력
-x, --exclude-type=형식 지정한 형식 외의 파일 시스템만 목록화
-v (무시됨)
--help 이 도움말을 표시하고 끝냅니다
--version 버전 정보를 출력하고 끝냅니다

지정할 크기는 (또는 하나의 정수에 다음이 뒤따르거나) 다음 중 하나여도 됨:
kB 1000, K 1024, MB 1000*1000, M 1024*1024, G, T, P, E, Z, Y.

Report df bugs to bug-coreutils@gnu.org
GNU coreutils home page:
General help using GNU software:
Report df translation bugs to

du ( used disk) : 용량확인
[code bash]
du --help
[/code]
사용법: du [옵션]... [파일]...
또는: du [옵션]... --files0-from=F
지정한 각 파일의 디스크 사용량을 요약함, 하위 디렉토리에 대해서도.

긴 옵션에서 꼭 필요한 인수는 짧은 옵션에도 꼭 필요합니다.
-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 버전 정보를 출력하고 끝냅니다

지정할 크기는 (또는 하나의 정수에 다음이 뒤따르거나) 다음 중 하나여도 됨:
kB 1000, K 1024, MB 1000*1000, M 1024*1024, G, T, P, E, Z, Y.

Report du bugs to bug-coreutils@gnu.org
GNU coreutils home page:
General help using GNU software:
Report du translation bugs to


[code bash] du -c -h --max-depth=1 [/code]

'IT > Tech' 카테고리의 다른 글

리눅스 특정사용자 강제 로그아웃 시키기  (0) 2010/05/04
리눅스 log rotate  (0) 2010/04/27
리눅스 용량확인  (0) 2010/04/27
구글 picasa(피카사) 설치 deb 설치  (0) 2010/04/20
나눔고딕코딩 폰트 설치  (0) 2010/04/15
myPickup widget 가이드  (0) 2010/04/12
TOTAL 245,654 TODAY 21