LinuxQuestions.org
Help answer threads with 0 replies.
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 09-22-2007, 07:56 AM   #1
cy163
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Rep: Reputation: 15
meaning of columns in the result of executing 'ls -l'


Hello all,

I do not understand the meaning of some columns in the result of executing 'ls -l'. For example, i got the following result by run 'ls -l'

total 3531


-rw-r--r-- 1 root root 1351680 Oct 17 20:50 fileindex.rpm
-rw-r--r-- 1 root root 16384 Oct 17 20:50 groupindex.rpm
-rw-r--r-- 1 root root 16384 Oct 17 20:50 nameindex.rpm
drw-r--r-- 2 root root 233 Oct 17 20:50 dirA


I do not know

(1) I know that 'total 3531' means the number of blocks used by a directgory, but i do know if i can calculate the size in byte of the directory from the number of blocks.
(2) what is the meaning of the second column, i.e., containing the number 1, 1, 1, 2.
(3)What is the meaning of the fifth column for a directory, such as the number '233' for the directory 'dirA'.


thanks
 
Old 09-22-2007, 11:18 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
(2) what is the meaning of the second column, i.e., containing the number 1, 1, 1, 2.
Shows the number of links to a file or directory.
Quote:
(3)What is the meaning of the fifth column for a directory, such as the number '233' for the directory 'dirA'.
Shows the file size in bytes unless the -h option is used, as in 'ls -lh'.
 
  


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
substitute 2 columns ovince Programming 2 05-04-2007 01:07 AM
Need Help With Columns Post Modern Programming 2 02-01-2006 11:18 AM
Vi Columns Chaitanyayardi Linux - Software 5 05-12-2005 07:27 AM
Count of two columns vimal480 Programming 1 04-16-2005 02:25 AM
How can I see the other 10 columns sakulagi Linux - Software 1 06-16-2003 09:45 PM


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