I'm trying to clear my Chromium browser cache using CLI on Gallium OS (based on Xubuntu). What command should I use?


On Linux you can clear the browser cache using the following command, after closing the browser:


The browser cache is stored in different directories depending on whether Chromium is installed as a regular package or as a snap. Run

$ which chromium

to find out which one your system is using. Examples:

/usr/bin/chromium   -> traditional package
/snap/bin/chromium  -> snap

Installed from regular package

rm -rf ~/.cache/chromium

Installed from snap

rm -rf ~/snap/chromium/common/.cache/chromium

Google Chrome

rm -rf ~/.cache/google-chrome
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.