Answers for "command to find number of files in a directory"

1

terminal get number of files in dir

#Type in terminal in the directory:

ls -1 | wc -l
Posted by: Guest on July-22-2021
2

count number of files in directory linux

find DIR_NAME -type f | wc -l
Posted by: Guest on March-15-2021

Code answers related to "command to find number of files in a directory"

Browse Popular Code Answers by Language