![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display the result of wc -l with words before and after the result | melanie_pfefer | UNIX for Dummies Questions & Answers | 3 | 04-30-2008 07:33 AM |
| if [ ! -r ${1} ] meaning in ksh | naveeng.81 | Shell Programming and Scripting | 1 | 04-09-2008 01:47 PM |
| Outputting formatted Result log file from old 30000 lines result log<help required> | vikas.iet | Shell Programming and Scripting | 5 | 12-02-2007 10:43 PM |
| executing script by cron doesnt give me expected result | anchal_khare | UNIX for Advanced & Expert Users | 1 | 09-12-2007 08:07 AM |
| what is the meaning here? | forevercalz | Shell Programming and Scripting | 2 | 09-29-2005 12:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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) what does the 'total 3531' mean in the first line (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 |
|
||||
|
total 3531 --- total no.of block used in the directroy
Second column lists the number of hard links to that entry When the size of the files in a directory are listed, the ls command displays a total count of blocks, including indirect blocks. |
|
||||
|
Quote:
pbsrinivas , thanks for your quick reply. Do you mean the number '233' is the total number of blocks used by the directory 'dirA'. How can i know/calculate the size in byte of a directory from the number of blocks used by the directory. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|