Re: size of a directory
Hi Gregor. You can use the 'du' command:
$ du -sk /usr
1867575 /usr
This will tell you the sum total size of all files in all subdirectories
of /usr, in kilobytes (on my system, 1867575 kB, or about 1.87 gigs).
If you want the number in megabytes instead, use 'du -sm /usr'.
The -s option tells du to report just the total in /usr; if you want it
to give you a list of the numbers for all its subdirectories (i.e.
/usr/bin, /usr/local, /usr/local/bin ...), omit the '-s'; use 'du -k' or
'du -m'. Type 'man du' for more details.
Hope this helps :)
Aaron
On Mon, 5 Mar 2001, Gregor Kaleta wrote:
> How can I view the size of a spezial directory e.g. /usr?
>
Reply to: