The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2006
Registered User
 

Join Date: Jun 2005
Posts: 94
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
Reply With Quote
Forum Sponsor
  #2  
Old 02-21-2006
DogDay's Avatar
Registered User
 

Join Date: Jun 2005
Location: /dev/null
Posts: 83
Quote:
Originally Posted by pascalbout
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

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.
Reply With Quote
  #3  
Old 02-21-2006
Registered User
 

Join Date: Feb 2006
Posts: 61
'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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0