Hi,

To get total file size use -s (summary option) too, i.e. du -sh

Regards,




________________________________
From: Akshay Lamba <[email protected]>
To: [email protected]
Sent: Friday, January 9, 2009 4:20:06 PM
Subject: Re: [dubailug] Total File sizes in Current Directory


Command:

du -h <directory name>


________________________________
From:  Bipinchandra Ranpura 
Date: Fri, 9 Jan 2009 04:48:36 -0800 (PST)
To: DubaiLUG<dubai...@yahoogroup s.com>
Subject: [dubailug] Total File sizes in Current Directory

Hi all

How can I get total # of files and its total size in current directory at 
command line. Similar to DOS DIR command. 

DOS DIR command list each directory entry and at end it summarizes

Total File(s) lited:
22 file(s)  1,234,567 bytes
2 dir(s)       1,024 bytes.

ls gives listing of each directory entry.
df gives total size of hdd. 

Thanks 

Bipin 

    


      

Reply via email to