On Mon, 26 Aug 2002, 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.
% du -ms <directory name> will give you the size (in megabytes) of a directlry. % find <directory name> -type f | wc -l will give you the number of files. tim http://www.cosc.canterbury.ac.nz/~tnw13 Quidquid latine dictum sit, altum viditur.
