LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-22-2012, 09:57 PM   #1
zahheb
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 ??


thanks
 
Old 08-22-2012, 11:07 PM   #2
austintx
Member
 
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Much like DNS, its all done with numbers behind the scenes; see
https://en.wikipedia.org/wiki/Inode#...de_description
https://en.wikipedia.org/wiki/Inode_pointer_structure
 
Old 08-26-2012, 06:11 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,652
Blog Entries: 10

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:
Code:
328820 /etc/password
I found this article with a Google search "Linux File System"
HTH

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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