du -h dir-name where dir-name is the path of the directory. -h just gives sizes in human readable form. du stands for "disk usage" I think.
On Mon, 2002-08-26 at 10:53, Gerard van Antwerpen wrote: > 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 -- Zane Gilmore, Analyst / Programmer Information Services Section, Information Technology Dept, University of Canterbury Private Bag 4800 Christchurch New Zealand phone +64-3-364 2987 extn 7895 Fax 3642222
