[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] "My hard Drive needs to lose some weight" - Raq4R
- Subject: RE: [cobalt-users] "My hard Drive needs to lose some weight" - Raq4R
- From: Phoenix Hawk <phawk@xxxxxxxxxxxxxxxxxxx>
- Date: Tue Mar 27 21:16:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 17 Mar 2001, Rodolfo Paiz wrote:
> du -h --maxdepth=1 /
(had some problem catching up with the list,
what with balancing schoolwork and helping
a fren admin his cobalt server(s), still 1400+
mails behind *urgh* so this late follow-up
shouldn't be a surprise...)
after looking at the above tip and trying it,
i had some problems with "du".
[root /]# du -h --maxdepth=1 /
du: unrecognized option `--maxdepth=1'
Try `du --help' for more information.
not sure why though, i tried it on a raq4i
with all updates.
so, what i did was:
su -
cd /
du -sk * | sort -rn | less
this will sort the output from "du" and list the
largest files/directories at the top of the
list which is piped to "less" in case the output
becomes excessive ( > 1 screenful )
warning: this will take a long time 'coz it recursively
calculates your file/directory sizes (similar to the
--max-depth option, i should think).
hope this helps to whoever has the same problem
with "du" as me.
just my 2 cents.
regards.
--
The past is only an arrangement of photons receding at lightspeed.