LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 11-02-2010, 06:38 AM   #1
shwetank.techi
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Question inode


how can we view a file with its inode nno .

eg.
cat 12456
where 12345 is the inode of a file
 
Old 11-02-2010, 06:41 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

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

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

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 06:42 AM.
 
Old 11-02-2010, 06:41 AM   #4
Mark1986
Member
 
Registered: Aug 2008
Location: Netherlands
Distribution: Xubuntu
Posts: 87

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

http://www.cyberciti.biz/tips/unders...em-inodes.html

Found it using Google with question: linux read inode.
 
  


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


All times are GMT -5. The time now is 08:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration