how-to-count-files-in-directory

#linux #tip

how to count files in directory

find DIR_NAME -type f | wc -l
  • ์ž์‹ ๋””๋ ‰ํ† ๋ฆฌ์˜ ํŒŒ์ผ ๊ฐฏ์ˆ˜๋„ ํฌํ•จ

  • type -f : ํŒŒ์ผ๋งŒ

  • wc : count lines, words, or bytes on input

  • wc -l : count just newlines

์ฐธ๊ณ 

Last updated