LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-11-2012, 06:49 PM   #1
thiyagusham
Member
 
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
/home/oracle

PHP Code:
oracle@localhost ~]$ ls -i
2583926 
='01-01-2012'"  2583845 Desktop    2583996 script.sql
2583925 =01-01-2012'"   
2584008 filey.txt  2583936 scripts.sql 
2583922 
'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
Thiyagusham.G
 
Old 11-11-2012, 07:22 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Try stat cmd http://linux.die.net/man/1/stat
 
1 members found this post helpful.
Old 11-11-2012, 07:35 PM   #3
thiyagusham
Member
 
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

Quote:
[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 ?

Thanks
Thiyagusham.G
 
Old 11-12-2012, 12:46 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
  


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

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

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