LinuxQuestions.org
Review your favorite Linux distribution.
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, 10: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-23-2012, 12:07 AM   #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-23-2012 at 12:18 AM.
 
Old 08-23-2012, 01:48 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
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, 07:11 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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 07: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
Getting file name from inode number kalamaraki Programming 10 11-20-2018 04:57 PM
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
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

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

All times are GMT -5. The time now is 08:47 AM.

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
Open Source Consulting | Domain Registration