Finding the Number of Files (inodes) in a Directory on Linux
Posted on In LinuxOn Linux, to find the number of files (inodes) in a directory:
$ find ./ | wc -l
to find the number of files (not directories) in a directory:
$ find ./ -type f | wc -l
to find the number of directories in a directory:
$ find ./ -type d | wc -l
Number of inodes != Number of files
As in, you can’t guarantee 1 file uses 1 Node!!!!!!!!!!!
Can you give some examples that 1 file uses more than 1 inodes?