Count the number of files using ls command in linux

So you wanna know how many file are in your current directory in terminal? it’s easy. the “ls” does it all.

ls -1 | wc -l

Have a good day all.

Leave a comment

Leave a Reply