How can you find how many files you have in your file system or a directory using Linux CLI?

Here are a couple of ways

 

# ls -f /fsmnt/fs1 | wc –l

# find /fsmnt/fs1/genesis -type f | wc -l

Daryl Heinis
2018-12-12 17:47