http://www.cyberciti.biz/tips/understanding-unixlinux-filesystem-inodes.htmlUnderstanding UNIX / Linux filesystem InodesThe inode (index node) is a fundamental concept in the Linux and UNIX filesystem. Each object in the filesystem is represented by an inode. But what are the objects? Let us try to understand it in simple words. Each and every file under Linux (and UNIX) has following attributes: => File type (executable, block special etc) All the above information stored in an inode. In short the inode identifies the file and its attributes (as above) . Each inode is identified by a unique inode number within the file system. Inode is also know as index number. inode definition
How do I see file inode number?You can use ls -i command to see inode number of file 32820 /etc/passwd You can also use stat command to find out inode number and its
attribute: File: `/etc/passwd' Size: 1988 Blocks: 8 IO Block: 4096 regular file Device: 341h/833d Inode: 32820 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2005-11-10 01:26:01.000000000 +0530 Modify: 2005-10-27 13:26:56.000000000 +0530 Change: 2005-10-27 13:26:56.000000000 +0530 Inode applicationMany commands used by system administrators in UNIX / Linux
operating systems often give inode numbers to designate a file. Let us
see he practical application of inode number. Type the following
commands: Now try to remove file "la* You can't, to remove files having created with control characters or characters which are unable to be input on a keyboard or special character such as ?, * ^ etc. You have to use inode number to remove file. This is fourth part of "Understanding UNIX/Linux file system, continue reading rest of the Understanding Linux file system series (this is part IV):
|