Ubuntu – ALL ubuntu logs/terminal history stored

bashhistorylogssecure-eraseSecurity

In what folders are the logs and key histories stored so that I may make a script to purge them. Is there a specific folder for the hibernation partition or a file by which it keeps the RAM data on hibernate? Is someone wanted to rid of all command history/program load history/program execution history, where would they go?

Thankx
Light

Best Answer

There are a lot of places where things get logged, and it will be very diffucult to be exhaustive, depending on what applications you use. That said, here are the main places I can think of:

  • most system logs go into /var/log
  • firefox stores your history, cookies, etc... in ~/.mozilla/firefox This can be purged from Firefox (shift+ctrl+suppr)
  • zeitgeist is an history daemon, that populates the dash recent history. It can be purged from the privacy settings
  • terminal command history is saved on a per-user basis in ~/.bash_history Deleting this file will remove this history.
  • gnome applications (gedit, nautilus, etc...) store recently used files in ~/.local/share/recently-used.xbel This file can be deleted if needed.

These are the main places I can think of, but any application can log things in various places... so it really depends on what logs you want to remove.

As mentionned by MrVaykadji, BleachBit is a GPL software that automates such cleansing task, and let you delete "log files" for a wide variety of known softwares. You can also easily add new cleaners with simple xml files. Might be what you are (ware) looking for!