ServerCake India

How to View Inode of a File?

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

Editorial Team

Editorial Team at ServerCake India Blog is a team of experts in Server Administration, Business Development, Management, SEO Analyst & Graphic Designers with more than 5+ years of expertise.

Add comment