LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03:25 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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, 03:39 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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 03:42 AM.
 
Old 08-18-2008, 03:41 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 04:29 AM   #4
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
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, 11:57 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
How about:

ls -Ri

or

find / -print0 | xargs -0 stat

Last edited by Mr. C.; 08-18-2008 at 11:59 AM.
 
  


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

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

All times are GMT -5. The time now is 09:26 PM.

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