![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| size of directory | redbeard_06 | Shell Programming and Scripting | 19 | 08-08-2008 01:08 AM |
| Size of Directory | tantric | High Level Programming | 1 | 06-28-2007 11:43 AM |
| size of a directory | collins | High Level Programming | 6 | 10-15-2004 02:08 PM |
| size of a directory? | yls177 | UNIX for Dummies Questions & Answers | 2 | 11-25-2002 06:44 AM |
| Size of a directory | minazk | Shell Programming and Scripting | 9 | 10-01-2002 03:03 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
size of directory with ls -l
hello
When i do a "ls -l" in a directory (Aix 5.3), i have the result : >ls -l total 65635864 -rw-r--r-- 1 lobi system 2559909888 Feb 20 15:06 cible5.7bdat -rw-r--r-- 1 lobi system 1020098870 Feb 20 13:06 cible6.7bdat -rw-r--r-- 1 lobi system 1544789511 Feb 20 11:06 cible9.7bdat -rw-r--r-- 1 lobi system 2145654420 Feb 20 10:06 cible11.7bdat .... but if i do a "du -k" to the directory (so ../), i have : 32817936 ./DDlobi I don't understand the differency between these 2 values: 65635864 and 32817936 The result with this "du" is in ko, but a result with a "ls" is in o. thank you |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
I believe the 'total' you see in the ls output is the total number of blocks used in that directory and is not an indication of file size total. |
|
#3
|
|||
|
|||
|
'du -k' will give you the size of the directory 1k blocks. the "total" on the ls command may be the total usage in 512 byte increments.
|
|||
| Google The UNIX and Linux Forums |