[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] "My hard Drive needs to lose some weight" - Raq4R



its

du -h --max-depth 1

not

du -h --maxdepth=1


Arsalan Mahmud
Nexus Technologies
http://www.nexus.net.pk
----- Original Message -----
From: "Phoenix Hawk" <phawk@xxxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 28, 2001 6:17 PM
Subject: RE: [cobalt-users] "My hard Drive needs to lose some weight" -
Raq4R


>
> 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.
>
>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>