Using Bleachbit in a shell script

I moved the topic here from the forum at

andrewziem wrote:


Regarding "bleachbit --user xyz" you can try this command

HOME=/home/bob sudo bob --delete firefox.cache

When run as root, that changes the HOME variable to /home/bob, changes to the
user bob, and runs the command.


Thanks for the suggestion. I hadn't got round to trying out the CLI until now.

I set up a shell script as follows:

cd $HOME
bleachbit --delete evolution.cache

Subscribe to RSS - CLI