"리눅스 디렉토리 이하 파일 개수 세기"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;리눅스 디렉토리 이하 파일 개수 세기
;리눅스 디렉토리 이하 파일 개수 세기
* 자식 디렉토리의 파일 개수도 포함된다.
* 자식 디렉토리의 파일 개수도 포함된다. (recusive)
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
find /폴더/경로 -type f | wc -l
find /폴더/경로 -type f | wc -l
12번째 줄: 12번째 줄:
* https://devconnected.com/how-to-count-files-in-directory-on-linux/
* https://devconnected.com/how-to-count-files-in-directory-on-linux/
* http://stackoverflow.com/questions/9157138/recursively-counting-files-in-a-linux-directory
* http://stackoverflow.com/questions/9157138/recursively-counting-files-in-a-linux-directory
* https://stackoverflow.com/questions/1427032/fast-linux-file-count-for-a-large-number-of-files


[[분류: 리눅스]]
[[분류: 리눅스]]
[[분류: find]]
[[분류: find]]

2020년 11월 23일 (월) 12:18 기준 최신판

1 개요[ | ]

리눅스 디렉토리 이하 파일 개수 세기
  • 자식 디렉토리의 파일 개수도 포함된다. (recusive)
find /폴더/경로 -type f | wc -l

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}