df : 디스크 남은 용량 확인하는 명령어
# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 495116 0 495116 0% /dev
tmpfs 503640 0 503640 0% /dev/shm
tmpfs 503640 50900 452740 11% /run
tmpfs 503640 0 503640 0% /sys/fs/cgroup
/dev/xvda3 17438068 5979408 10549812 37% /
/dev/xvda1 991512 252628 671300 28% /boot
tmpfs 100728 0 100728 0% /run/user/0
df -k : df 명령어시 킬로바이트 단위로 남은 용량
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 495116 0 495116 0% /dev
tmpfs 503640 0 503640 0% /dev/shm
tmpfs 503640 50900 452740 11% /run
tmpfs 503640 0 503640 0% /sys/fs/cgroup
/dev/xvda3 17438068 5979408 10549812 37% /
/dev/xvda1 991512 252628 671300 28% /boot
tmpfs 100728 0 100728 0% /run/user/0
df -m : df 명령어시 메가 바이트 단위로 남은 용량
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
devtmpfs 484 0 484 0% /dev
tmpfs 492 0 492 0% /dev/shm
tmpfs 492 50 443 11% /run
tmpfs 492 0 492 0% /sys/fs/cgroup
/dev/xvda3 17030 5840 10303 37% /
/dev/xvda1 969 247 656 28% /boot
tmpfs 99 0 99 0% /run/user/0
df -h : df 명령어시 보기좋게 정리된 결과
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 484M 0 484M 0% /dev
tmpfs 492M 0 492M 0% /dev/shm
tmpfs 492M 50M 443M 11% /run
tmpfs 492M 0 492M 0% /sys/fs/cgroup
/dev/xvda3 17G 5.8G 11G 37% /
/dev/xvda1 969M 247M 656M 28% /boot
tmpfs 99M 0 99M 0% /run/user/0
df . : df 명령어시 현재 디렉토리가 포함된 파티션의 남은 용량
# df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda3 17438068 5979408 10549812 37% /
du : 현재 디렉토리에서 서브 디렉토리까지 용량 확인 명령어
# du
4 ./user
4 ./system/multi-user.target.wants
4 ./system/cloud-init.target.wants
4 ./system/getty.target.wants
4 ./system/local-fs.target.wants
40 ./system/backup20210520
4 ./system/default.target.wants
4 ./system/sysinit.target.wants
4 ./system/sockets.target.wants
4 ./system/system-update.target.wants
4 ./system/basic.target.wants
88 ./system
120 .
du -a : du 명령어시 현재 디렉토리의 사용량 파일단위로 출력
# du -a
4 ./pluginconf.d/fastestmirror.conf
8 ./pluginconf.d
4 ./version-groups.conf
4 ./vars/contentdir
4 ./vars/infra
12 ./vars
4 ./protected.d/systemd.conf
8 ./protected.d
4 ./fssnap.d
40 .
du -s : du 명령어시 총 사용량
# du -s
120 .
du -h : du 명령어시 보기좋게 정리된 결과
# du -h
4.0K ./user
4.0K ./system/multi-user.target.wants
4.0K ./system/cloud-init.target.wants
4.0K ./system/getty.target.wants
4.0K ./system/local-fs.target.wants
40K ./system/backup20210520
4.0K ./system/default.target.wants
4.0K ./system/sysinit.target.wants
4.0K ./system/sockets.target.wants
4.0K ./system/system-update.target.wants
4.0K ./system/basic.target.wants
88K ./system
120K .
du -sh * : du 명령어시 한단계 서브 디렉토리 기준으로 결과 출력
# du -sh *
4.0K bootchart.conf
4.0K coredump.conf
4.0K journald.conf
4.0K logind.conf
88K system
4.0K system.conf
4.0K user
4.0K user.conf
'IT' 카테고리의 다른 글
[Windows] Server IIS 설치하기 (0) | 2021.06.03 |
---|---|
[리눅스] vi 명령어 정리 (0) | 2021.05.25 |