[linux-help] Re: checking a directory size
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Ben Bunck wrote:
> Is there a simple command to check the "size" of a directory (the sum
total
> of it's contents)? I run into a lot of occasions where such information
> would be useful (making iso images of directories, for instance).
>
> Ben
>
> -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
du will provide statistics for a particular directory.
-h flag makes it easier to read the output
-s flag provides a summary, instead of the details for all subdiectories
ex: du /tmp
# du /tmp
12 /tmp/lost+found
1 /tmp/ssh-XXRJjQz5
1 /tmp/ssh-XX8vu2ea
1 /tmp/.font-unix
1 /tmp/.X11-unix
2 /tmp/orbit-root
4 /tmp/ZZFiler
1 /tmp/.ICE-unix
1 /tmp/orbit-xxxx
1 /tmp/.sawmill-xxxx
1 /tmp/.sawmill-xxx
28 /tmp
and # du -hs /tmp
28k /tmp
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linux-help] Re: checking a directory size,
Jack Marks <=
|
|