How to count files (get the number of files) under a directory in Linux?
Just perform this command under the directory: find . -type f | wc -l and you will get the total number of files under it (recursively). Simply copy and paste that to do the trick. Or if you just need to count the files directly under the current directory: ls -f | wc -l Which …
How to count files (get the number of files) under a directory in Linux? Read More »