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.
An inode is a data structure on a traditional Unix-style file system such as UFS or ext3. An inode stores basic information about a regular file, directory, or other file system object.
You can use ls -i command to see inode number of file
ls -i /etc/passwd
You can also use stat command to find out inode number and its attribute:
stat /etc/passwd
Inode application
Many commands used by system administrators in UNIX / Linux operating systems often give inode numbers to designate a file.
cd /tmp
touch \"la*
ls -l
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.
Read full article from Understanding UNIX / Linux filesystem Inodes - nixCraft
An inode is a data structure on a traditional Unix-style file system such as UFS or ext3. An inode stores basic information about a regular file, directory, or other file system object.
You can use ls -i command to see inode number of file
ls -i /etc/passwd
You can also use stat command to find out inode number and its attribute:
stat /etc/passwd
Inode application
Many commands used by system administrators in UNIX / Linux operating systems often give inode numbers to designate a file.
cd /tmp
touch \"la*
ls -l
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.
Read full article from Understanding UNIX / Linux filesystem Inodes - nixCraft
No comments:
Post a Comment