du command

linux의 du 명령어를 통해 디렉토리 별로 디스크 사용량을 확인 할 수 있습니다. 기본 사용법 $> du /usr/bin 557780 /usr/bin 출력되는 값은 --block-size 또는 DU_BLCOK_SIZE, BLOCK_SIZE, BLOCKSIZE 환경 변수에서 사용 가능한 첫 번째 SIZE 단위 입니다. 그렇지 않으면 단위는 기본적으로 1024 바이트 (또는 POSIXLY_CORRECT가 설정된 경우 512) 입니다. TLDR $> tldr du du Disk usage: estimate and summarize file and directory space usage. - List the sizes of a directory and any subdirectories, in the given unit (B/KB/MB): du -b|k|m path/to/directory - List the sizes of a directory and any subdirectories, in human-readable form (i.

Continue reading

Author's picture

GeekSaga

.

Dreamer

Korea