IT/👨‍💻Computer Science

"ls -l" vs "du"의 폴더 사이즈 차이

지식모아이령 2022. 6. 17. 10:45
결론:
파일이 아닌 '폴더' 사용량을 확인하고자 할 때는 du를 사용하자.

 

내용:

ls로 폴더 정보를 확인하는 경우, 폴더의 inode가 가지고 있는 사이즈를 보여준다.

du는 각 파일의 디스크 사용량의 요약한다.

 

첨부:

*ls: List information about the Files (the current directory by deafult).

*du: summarize disk usage of each File, recursively for directories.
Mandatory arguments to long options are mandatory for short options too.

 

'IT > 👨‍💻Computer Science' 카테고리의 다른 글

운영체제(Operating System, OS)란?  (0) 2023.02.15
파일 시스템(File System)이란  (0) 2023.02.15
Docker Compose를 사용한 LEMP 구축  (2) 2023.02.12
PostgreSQL 설치  (0) 2023.01.27
Vim  (0) 2021.12.26
파일 시스템 계층 구조 표준  (0) 2021.12.26
Slack 데이터 통계 자동화  (0) 2021.07.30
slack - slack api 정리  (0) 2021.07.30