This blog is all about freedom of technology and machines.
Tantra means technology.
Yantra means machine.
Swatantrya means freedom.
Tantra means technology.
Yantra means machine.
Swatantrya means freedom.
Inode and its corresponding filename
Posted 07-21-2009 at 09:58 AM by Mr. ameya sathe
We refer to a file by its name. Computer refer to the file by its inode numbers. For every filesystem; there is an inode table. This table consists of Inode numbers & its correspondingmetadata. On the contrary; the mapping of filenames to inode numbers is stored in the directory containing the file.
To display the inode number of a file; say hindu one must issue the command
To display the total number of inode numbers in the filesystem ; you must issue the command
The output will show free inodes as well inodes.
To deduce a filename from any inode numbers present in your operating system; issue the command
where; 1234 is the inode number.
Please note; inode tables are only unique to the filesystem & not to the complete operating system. Hence; if you see more than one entry in the output of above command; then it means that
To display the inode number of a file; say hindu one must issue the command
Code:
ls -i hindu
Code:
dumpe2fs /dev/vol0/root
To deduce a filename from any inode numbers present in your operating system; issue the command
Code:
find / -inum 1234
Please note; inode tables are only unique to the filesystem & not to the complete operating system. Hence; if you see more than one entry in the output of above command; then it means that
- Hard Links present for the given inode number.
- The files are present on different filesystems.
Total Comments 0









