Help answer threads with 0 replies.
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 11-02-2010, 05:38 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Question inode

how can we view a file with its inode nno .

cat 12456
where 12345 is the inode of a file
Old 11-02-2010, 05:41 AM   #2
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Posts: 1,373

Rep: Reputation: 135Reputation: 135
Originally Posted by shwetank.techi View Post
how can we view a file with its inode nno .

cat 12456
where 12345 is the inode of a file
Welcome to LQ,
Do you want this or anything else ?
ls -i
Old 11-02-2010, 05:41 AM   #3
Registered: May 2010
Posts: 36

Rep: Reputation: 3
you can find the file with the "find" command.

find . -inum 12456

will list the file.

cat `find . -inum 12456`

will therefore view the file whose inode number is 12456.

Of course you will have to fill in the root of the filesystem whose inode number you want instead of "." if you don't know for sure that hte file resides in or below the current directory.

Last edited by rew; 11-02-2010 at 05:42 AM.
Old 11-02-2010, 05:41 AM   #4
Registered: Aug 2008
Location: Netherlands
Distribution: Xubuntu
Posts: 87

Rep: Reputation: 11
Is this what you are looking for?

Found it using Google with question: linux read inode.


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
what is inode. shellarchive Red Hat 2 01-01-2008 11:12 PM
inode ahmed gamal Slackware 2 04-02-2006 08:34 AM
Should I truncate an inode? akurtis Red Hat 0 08-02-2004 09:34 PM
inode muthiahm Linux - Newbie 2 06-11-2004 04:00 PM
about inode eshwar_ind Programming 3 04-24-2004 02:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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