How to View Inode of a File?

0
26
View-inode
Inode Graphical Illustration

 What is Inode?

An inode is a data structure in the Unix-style file system which describes a file system object such as a file or a directory. A file in Unix system is given a unique number and this unique number is called as an inode. Each file and directory have an inode value. By using this inode number, the file information such as user, group, ownership, and access mode information can be found.

How to view inode of a file?

An inode number stores all information about a regular file, directory, or other file system object except its data and name. To find an inode use either 'ls' command or 'stat' command.

To view inode of a file, use the command #ls -i filename or #stat filename

LEAVE A REPLY

Please enter your comment!
Please enter your name here