try du

man du

for example to see whats taking up all the space on my system

cd /
du --max-depth=1|sort -n

I think there are also options in ls to give this sort of thing 

man ls



> Hi,
> I'm looking for the combination of shell commands that will give me the 
> combined size of a number of files.
> Like the dos dir command gives: 34 files, 390kb.
> I want to know the size of a directory, with all its files, and sub-dirs if 
> applicable.
> Must be some piping and grepping out of the ls command.
> could some one help?
> Thanks
> 
> Gerard van Antwerpen
> BE mech., MIPENZ, Reg.223986
> Design Engineer, QA Manager
> Cuddon Ltd.
> Blenheim, NZ

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to