Re: A handy utility (at least for me)
- From: Oliver Fromme <olli@xxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST)
Rick C. Petty wrote:
Mario Lobo wrote:
My /usr/ports directory was occuping 24 gigs, of which 20 was just from the
'work' directories !
You should type "make clean" more often. ;-)
Removing them one by one was a pain so I wrote this little utility to wipe
them off.
I find that the following command works just fine for me:
find /usr/ports -type d -name work -prune -print -delete
The following is probably the most efficient solution.
It doesn't run into all subdirectories (and works with
an arbitrary numebr of subdirectories).
cd /usr/ports; echo */*/work | xargs rm -rf
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"I started using PostgreSQL around a month ago, and the feeling is
similar to the switch from Linux to FreeBSD in '96 -- 'wow!'."
-- Oddbjorn Steffensen
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: A handy utility (at least for me)
- From: Richard Coleman
- Re: A handy utility (at least for me)
- From: Rick C. Petty
- Re: A handy utility (at least for me)
- References:
- Re: A handy utility (at least for me)
- From: Rick C. Petty
- Re: A handy utility (at least for me)
- Prev by Date: Re: jails, cron and sendmail
- Next by Date: Re: jails, cron and sendmail
- Previous by thread: Re: A handy utility (at least for me)
- Next by thread: Re: A handy utility (at least for me)
- Index(es):
Relevant Pages
- Re: 6.1 with PAE on a recent server (HP DL380 G5 or Dell PE 1950) ?
... If you need to minimize downtime, ... to install on a separate HD, and switch
HDs when you're ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
... Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd ... (freebsd-stable) - Re: truss and /sbin/init
... avoid confusion. ... Does you or perhaps someone else know why init is
locked in core? ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
... Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd ... (freebsd-stable) - Re: hp c class blade
... ports GB switch on the backside of the blade-chassis. ... Oliver Fromme,
secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing ... Dienstleistungen mit Schwerpunkt
FreeBSD: http://www.secnetix.de/bsd ... (freebsd-stable) - Re: kernel panic mounting /tmp - 6.2-PRERELEASE
... There is some speculation that the only solution is ... to add checksums
to all key data sections. ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567
Grafing ... Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd ...
(freebsd-stable) - Re: A handy utility (at least for me)
... an arbitrary numebr of subdirectories). ... use a memory filesystem,
... to just umount it. ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz
29, 85567 Grafing ... (freebsd-hackers)