곰시기's

[Linux] CentOS 31. 파일 개수 세기 본문

Sever/Linux Command

[Linux] CentOS 31. 파일 개수 세기

곰시기 2021. 2. 15. 16:37
#  ls -l | grep ^d | wc -l => 현재 위치 폴더 개수
# ls -l | grep ^- | wc -l  => 현재 위치 파일 개수
# find . -type f | wc -l   => 현재 위치의 하위 파일 개수
출처 - https://lee-mandu.tistory.com/420
Comments