[SOLVED] What's the 'history.db' file that keeps appearing in my home folder?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What's the 'history.db' file that keeps appearing in my home folder?
Hi.
I notice this file in ~/history. It appears now and then. I don't know why. I delete it and there doesn't seem to be any consequence. Anyone know what's up with that?
A very quick google points to Safari, which is rather unlikely on Debian, but perhaps other browsers use a file like this? Also, you could easily look inside using sqlite.
There is is app which is using SQLite. Look through running processes. You should find then guilty. And of course just read the file with SQLite. There is something nice GUI for reading SQLite files. I don't remember now the name. I was using it myself. Of course if you have some time just learn something about SQLite. Can be useful in future.
Go through all tabs. Browse other tabs and sure google a little. You see that on that picture there are many strange things, say: "PRAGMA checkpoint_fullfsync" and others. There must be something on internet.
Trying to figure out what created a file with such generic name and type using only circumstantial evidence is often a fruitless task. If you want to know, install audit package, set up a watch (auditctl -w ~/history/history.db -p war) and after this file has been created check who was the culprit (ausearch -f ~/history/history.db)
Are you sure audit system still exists? I found this https://linux.die.net/man/8/auditctl but it is for 2.6 kernel. I am running Devuan with 4.19 kernel and there is no such tool like auditctl. Perhaps there is something similar but starting point is to look for what is nowadays audit system in kernel. I mean it is kernel feature not a tool.
Edit: I missed correct package. Here is listed as autitd. Yet description reads
Quote:
The audit package contains the user space utilities for
storing and searching the audit records generated by
the audit subsystem in the Linux 2.6 kernel.
Edit: I feel like idiot now. All pragma statements are SQLite internals.
I am sorry to tell but google says history.db is also used by Safari browser. So if you are running Safari then essentially we are wasting our time here. Trying to resolve something which does not need to be resolved.
Trying to figure out what created a file with such generic name and type using only circumstantial evidence is often a fruitless task. If you want to know, install audit package, set up a watch (auditctl -w ~/history/history.db -p war) and after this file has been created check who was the culprit (ausearch -f ~/history/history.db)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.