Welcome to the most active Linux Forum on the web.
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, 10: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-23-2012, 12:07 AM   #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-23-2012 at 12:18 AM.
Old 08-23-2012, 01:48 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,418

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Much like DNS, its all done with numbers behind the scenes; see
Old 08-26-2012, 07:11 PM   #4
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 8,094
Blog Entries: 13

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 07: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 07:27 AM
Find the inode number PankajDS Linux - Kernel 3 03-15-2008 12:26 PM
Getting file name from inode number kalamaraki Programming 5 02-24-2007 10:17 PM
iNode number, how does it change? saudoi Solaris / OpenSolaris 4 05-22-2005 05:38 AM
What can change an inode number? nc101 Linux - General 2 01-03-2005 11:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

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