useful shell script

freebsd at bitfreak.org freebsd at bitfreak.org
Sat Nov 4 11:04:07 PST 2006


J. R. Lenz wrote:
> Reclaiming disk space was a high priority on my laptop, which has a 4gb 
> FreeBSD partition.  So, I wrote a useful shell script for removing all the 
> "work" directories in the ports tree (I'm sure someone has already done 
> this, but it saves a little bit of time for those people who are not 
> fluent in shell scripting).  You'd be surprised how much disk space can be 
> freed up by removing unused source code and compiled objects.

rm -rf /usr/ports/*/*/work



More information about the freebsd-ports mailing list