/
๐Ÿ”

Counting files in directory

ShellLinux

Count all files in current directory.

$ ls -l | wc -l

Count all files, including sub-directories.

$ find . -type f | wc -l
Edit this page
Code Snippets & Notes by Makzan