LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-18-2008, 04:25 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 447

Rep: Reputation: 30
About directory anf file status ?


Dear Friends ,

Here I paste one file and one directory status using 'ls -il' command :

15630341 drwxr-xr-x 2 root root 4096 Aug 18 14:01 dir2
15630344 -rw-r--r-- 1 root root 7 Aug 18 14:11 file1

Now plz tell me what is the following thing :

1) 15630341
2) 2 & 1 (value between 'drwxr-xr-x' and 'root root')
3) 4096 & 7

wiating for ur kind reply ... ...
 
Old 08-18-2008, 04:39 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
1) Inode number
2) Link count
3) directory/file size

This information is available via info ls. Unfortunately, info is ridiculously complicated for new users. Try it, and just hit the space bar to move page-to-page.

Last edited by Mr. C.; 08-18-2008 at 04:42 AM.
 
Old 08-18-2008, 04:41 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Looks a bit like homework, but I'll give you the benefit of the doubt:

1) inode number of the file (take a look at the ls manpage),
2) amount of links/dirs (always 1 for a file and a minimum of 2 for a directory),
3) size of file/directory.

Hope this helps.
 
Old 08-18-2008, 05:29 AM   #4
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 447

Original Poster
Rep: Reputation: 30
RE : about file and directory

Thx friend for ur reply .

In Linux , I want to know all the inode information and inode serial number .
From where I get inode related information in linux ? Is it possible to know ?
 
Old 08-18-2008, 12:57 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
How about:

ls -Ri

or

find / -print0 | xargs -0 stat

Last edited by Mr. C.; 08-18-2008 at 12:59 PM.
 
  


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
How to Deternine file status lohrpr Linux - General 4 07-28-2006 04:25 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-04-2006 12:08 AM
file status pprajeev Linux - General 4 09-26-2003 07:59 AM
file status pprajeev Linux - Newbie 1 09-26-2003 07:30 AM
disabling telnet anf ftp nelly_boy Solaris / OpenSolaris 4 08-01-2003 08:52 AM


All times are GMT -5. The time now is 02:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration