[plug] directory listing

Adam Davin byteme-its at westnet.com.au
Mon Apr 10 14:08:00 WST 2006


Hello Jonathan,

On Mon, 10 Apr 2006 13:55:15 +0800 (WST)
"Jonathan Young" <jonathan at pcphix.com> wrote:

> 
> On 4/10/2006, "Alex Nordstrom" <lx at se.linux.org> wrote:
> 
> >Monday, 10 April 2006 13:29, Jon Miller wrote:
<snip> 

> Both very useful.  How do you get a list of files sizes as well?
> 
> I.e., if I start in /etc and type ls -l I get lots of useful
> information and can see the size of certain files.  If I want to know
> how much space required to backup /etc/* including sub-directories,
> how do I get the bottom line figures?
> 
> In DOS it would be
> 
> dir /a/s
> 
> with /a showing hidden files
> and /s including sib-directories
> 
> As the listing goes past it includes sub-totals for each directory and
> then a total at the end.  I have never managed to get Bash to do
> this...

Try 
du * -h 

to get the size of each file / directory or

du * -sh 

to get a summary. 

Regards, 
 
-- 

Adam Davin
Byteme IT Services
Mob: 0422 893 898
Fax: 08 9493 4462
Email: byteme-its at westnet.com.au



More information about the plug mailing list