Visit Jeremy's Blog.
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-11-2012, 07:49 PM   #1
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
I need some info about inode

Hi to all;

i red inode shows following info but i could n't list all informations in my system.
  • Size of file
  • Device ID
  • User ID of the file
  • Group ID of the file
  • The file mode information and access privileges for owner, group and others
  • File protection flags
  • The timestamps for file creation, modification etc
  • link counter to determine the number of hard links
  • Pointers to the blocks storing file’s contents

but i checked here

[oracle@localhost ~]$ pwd

PHP Code:
oracle@localhost ~]$ ls -i
='01-01-2012'"  2583845 Desktop    2583996 script.sql
2583925 =01-01-2012'"   
2584008 filey.txt  2583936 scripts.sql 
'01-01-2012'"   2583928 first.lst  2731222 sss
3123298 afiedt.buf      2583930 latest.lst 2731129 test
2583934 a.log           3123291 pdate      2731177 test1
2583903 asdf.lst        2731179 samp       2583932 text.lst
2583933 bcx.lst         2731178 sample     2584009 text.txt
3123290 commit          2583927 samp.lst   2731209 touchdir1
2583989 cpu.sql         2731221 scriptsamp 2583991 tsmp.sql
2583990 dbtime.sql      2584012 scriptsamp.txt  3123292 update 
1.I mean simply it shows inode number , how can i check ,
all informations (above listed informations)

Thanks & Regards
Old 11-11-2012, 08:22 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Try stat cmd
1 members found this post helpful.
Old 11-11-2012, 08:35 PM   #3
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
@ hi chrism

Thnks for reply . Ya i am woking on stat command .

as per your reply , can we use stat instead of inode?

here also one doubt

[oracle@localhost ~]$ stat script.sql
[oracle@localhost ~]$ stat -f script.sql
both showing different output. I am from oracle platform
I don't want too much confusions. what's your advice to check here ?

stat -f <file_name>
stat <file_name> or
except , is there any good command to know about file or directory ?

Old 11-12-2012, 01:46 AM   #4
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I suggest you take a look at "man stat" (in general man pages are your friend).

The -f flag shows file-system wide information (e.g. the total number of free inodes) while stat with no arguments shows information for the file itself.

I don't know what you mean by "can we use stat instead of inode." The stat command gets the information it presents from the inodes stored on disks. In general, it is a very bad idea to manipulate the inodes directly, although it can be done with debugfs. Instead, they are manipulated by the file system driver in the kernel. Instead, we use programs like stat, mkdir, touch, etc. to manipulate file data and metadata.


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
questions abt inode.inode gurus plz have a look aceone Red Hat 7 05-22-2011 01:11 PM
Info reader / info pages spoovy Linux - General 6 04-18-2011 04:24 AM
LXer: Conky-like Desktop Info Application With Html Support (gtk-desktop-info) [Ubunt LXer Syndicated Linux News 0 05-02-2009 12:50 AM
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 06:30 PM
PPC (PowerPC) G4: Altivec & SMP Support: info, etc.; also, Mac Mini info, etc. HowDoIProgramIt Linux - Hardware 0 05-29-2007 02:19 PM > Forums > Linux Forums > Linux - Newbie

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