How to delete temporary files in a browser on a Linux OS
Skip information indexHow to delete temporary files from the Mozilla Firefox browser on Linux
To delete cookies and temporary cached files from the Mozilla Firefox browser on the Linux operating system, you can use the browser's graphical interface or the command line, depending on your preference.
Clear temporary cache files and cookies from the Mozilla Firefox browser
You can access it in two ways:
-
In the Firefox browser toolbar, click on the three horizontal bars icon, located in the upper right corner, and enter "Record"

In the next window, click on "Clear recent history"

-
From the menu bar at the top, by clicking on "Preferences" either "Settings"

In the new window, select "Privacy & Security", then scroll down until you find the section for "Record" and click on "Clear history..."

From either access method you will get the same pop-up window with the name "Clear browsing data and cookies" Next, select "All"at the top, then, mark"Cookies and site data" and "Cached temporary files and pages" and press "Clean"

Delete temporary cached files and cookies from the command line
-
Open a terminal in Linux.
-
Locate the Firefox directories, usually in
~/.mozilla/firefox/
and within the .default profile folder or similar.
-
To clear the cache, run:
rm -r ~/.mozilla/firefox/*.default/cache2/*
-
To delete cookies and other website data:
rm ~/.mozilla/firefox/*.default/cookies.sqlite
rm ~/.mozilla/firefox/*.default/places.sqlite
-
Restart Firefox for the changes to take effect.