How to View Inode of a File?

0
88
View inode
Inode Graphical Illustration

What is Inode?

An inode is a data structure in the Unix-style file system. It describes a file system object such as a file or a directory. Whenever a file is created in Unix, a set amount of inodes will also be created. 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 without the data and name. To view inode of a file, we can 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