Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-22-2012, 09:57 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 29

Rep: Reputation: Disabled
inode number

in linux what do we mean when we say that the kernel sees the inode number and never the file name??

does it mean that any file we refer has an equivalent inode number and kernel will always use it when any access to that file is required ??

Old 08-22-2012, 11:07 PM   #2
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
quote: "what do we mean when we say that the kernel sees the inode number and never the file name??"

Who says that?
How can you access the inode without a filename or a hard link? (Maybe the FBI can)
I am sure the inode is represented by a number, but the kernel has to link the filename to that inode.

Last edited by austintx; 08-22-2012 at 11:18 PM.
Old 08-23-2012, 12:48 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,326

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
Much like DNS, its all done with numbers behind the scenes; see
Old 08-26-2012, 06:11 PM   #4
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 7,236
Blog Entries: 9

Rep: Reputation: Disabled
I just learned about inode's yesterday.

The inode identifies the file and it's attributes.

An inode in a data structure on a traditional Unix-style file system such as UFS or ext 3.
An inode stores basic information about a regular file, directory or other file system object.

You can use the ls -i command to see the inode # of the file.
This is just a sample:
328820 /etc/password
I found this article with a Google search "Linux File System"

Last edited by Ztcoracat; 08-26-2012 at 06:12 PM. Reason: Proper spelling


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can two files have the same inode number? sambyte Linux - Newbie 5 02-04-2009 06:27 AM
Find the inode number PankajDS Linux - Kernel 3 03-15-2008 11:26 AM
Getting file name from inode number kalamaraki Programming 5 02-24-2007 09:17 PM
iNode number, how does it change? saudoi Solaris / OpenSolaris 4 05-22-2005 04:38 AM
What can change an inode number? nc101 Linux - General 2 01-03-2005 10:29 AM

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration