New answers tagged


The inode number is simply the unique identifier of an inode. It is analogous to a UID or GID. Thus, each inode has exactly one identifier. To find the inode number of a file, use either ls -i or stat. Each directory in Unix is just a list of (filename, inode number) pairs. The inode number serves as a "pointer" to find the inode structure itself. The ...


With 3.2 million inodes, you can have 3.2 million files and directories, total (but multiple hardlinks to a file only use one inode). Yes, it can be set when creating a filesystem on the partition. The options -T usage-type, -N number-of-inodes, or -i bytes-per-inode can all set the number of inodes. I generally use -i, after comparing the output of du -s ...


Yes, it is. Use stat *directory name* in order to obtain inode number


Directories are special files, hence they have inodes. You can test that with ls: ls -li or using stat: stat -c '%F : %i : %n' * Example: % stat -c '%F : %i : %n' * regular file : 670637 : bar.csv regular file : 656301 : file.txt directory : 729178 : foobar The number in the middle is the inode number.

Top 50 recent answers are included