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

Re: Clean firefox cache commandline?



On Mon, Jul 18, 2005 at 01:58:19PM -0400, [KS] wrote:
> Does anyone know if there exists a commandline opttion to clean the
> cache for a firefox profile via the commandline? It would be pretty
> convenient for beta-testers/users who have multiple profiles for it.

There appears to be no such command-line option, according
to the Firefox man page. But if you're willing to accept a
little command-line hack, you could try

#!/bin/bash
FFDIR=~/.mozilla/firefox
find $FFDIR -depth -type d -name Cache -exec rm -R '{}' \;

Not very tested, but it seems like it should do the trick.

-- 
Stephen R. Laniel
steve@laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature


Reply to: