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

Average rating:0 (0 Votes)
Chuck Norris has counted to infinity. Twice.

Login

Please enter your login name and password.

Add question

Ask your question below:

Chuck Norris has counted to infinity. Twice.