[Linux] 서버 용량 확인
2021. 3. 29. 17:27
반응형
linux 서버 용량 점검
용량 KB/MB/GB 표기
ls -alh
total 40
drwxr-xr-x 10 jongpillee staff 320B Sep 28 16:25 .
drwxr-xr-x+ 62 jongpillee staff 1.9K Oct 6 14:28 ..
drwxr-xr-x 4 jongpillee staff 128B Jul 26 13:54 Career
drwxr-xr-x 15 jongpillee staff 480B Oct 6 14:24 Develop
drwxr-xr-x 3 jongpillee staff 96B Jul 26 14:00 Doc
-rw-r--r--@ 1 jongpillee staff 4.2K Sep 1 16:07 Untitled 1.md
-rw-r--r--@ 1 jongpillee staff 2.5K Sep 28 16:25 Untitled 2.md
drwxr-xr-x 5 jongpillee staff 160B Aug 8 09:40 Work
-rw-r--r--@ 1 jongpillee staff 2.4K Aug 19 13:58 사이판.md
folder, file 용량 조회
du -hs \MD
300K MD/
du -hs \MD/*
8.0K MD/Career
128K MD/Develop
12K MD/Doc
8.0K MD/Untitled 1.md
4.0K MD/Untitled 2.md
132K MD/Work
4.0K MD/사이판.md
file disk 용량
df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1s1 932Gi 22Gi 691Gi 4% 501138 4292962242 0% /
devfs 190Ki 190Ki 0Bi 100% 656 0 100% /dev
/dev/disk1s5 932Gi 8.0Gi 691Gi 2% 8 7247238840 0% /System/Volumes/VM
/dev/disk1s3 932Gi 372Mi 691Gi 1% 2218 7247238840 0% /System/Volumes/Preboot
/dev/disk1s6 932Gi 104Mi 691Gi 1% 469 7247238840 0% /System/Volumes/Update
/dev/disk1s2 932Gi 209Gi 691Gi 24% 1220863 7247238840 0% /System/Volumes/Data
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home
/dev/disk1s1 932Gi 22Gi 691Gi 4% 502070 4292614026 0% /System/Volumes/Update/mnt1
반응형
'Infra > Linux' 카테고리의 다른 글
[shell] thread dump (0) | 2021.03.25 |
---|---|
[Linux] 리눅스 명령어 (0) | 2021.03.25 |
[Linux] war 압축 (0) | 2014.01.24 |
[Linux] vi 명령어 (0) | 2014.01.24 |