LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-03-2021, 02:20 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,742

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question 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?

Thanks.
 
Old 03-03-2021, 02:42 AM   #2
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Use file
Code:
$ file history.db
this should give a hint what app is creating this.
 
Old 03-06-2021, 01:46 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,742

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by igadoter View Post
Use file
Code:
$ file history.db
this should give a hint what app is creating this.
Hi igadoter. Sorry for the late reply. I deleted the file a few days ago and was waiting for it to appear again.

Output:
Code:
history.db: SQLite 3.x database, last written using SQLite version 3027002
 
Old 03-06-2021, 02:48 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
Old 03-06-2021, 04:19 AM   #5
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
1 members found this post helpful.
Old 03-06-2021, 04:42 AM   #6
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,742

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Lightbulb

Quote:
Originally Posted by igadoter View Post
... There is something nice GUI for reading SQLite files. I don't remember now the name. ...
Hey igadoter. Was it 'sqlitebrowser', by any chance?
 
Old 03-06-2021, 04:49 AM   #7
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I really don't remember. But no matter if sqlitebrowser is gui for SQLite - just use it. Now I recalled that app I used was in qt5.
 
Old 03-06-2021, 04:51 AM   #8
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,742

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
There doesn't seem to be much to go on.
Attached Thumbnails
Click image for larger version

Name:	his.gif
Views:	49
Size:	77.2 KB
ID:	35798  
 
1 members found this post helpful.
Old 03-06-2021, 05:21 AM   #9
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
Old 03-06-2021, 06:17 AM   #10
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,010

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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)
 
1 members found this post helpful.
Old 03-06-2021, 06:29 AM   #11
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.

Last edited by igadoter; 03-06-2021 at 06:47 AM.
 
Old 03-06-2021, 07:09 AM   #12
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
Old 03-06-2021, 12:06 PM   #13
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by igadoter View Post
Are you sure audit system still exists? .
It does.
 
Old 03-06-2021, 01:22 PM   #14
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Thanks. I found this arch wiki https://wiki.archlinux.org/index.php/Audit_framework
 
Old 03-07-2021, 06:46 AM   #15
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,742

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by lvm_ View Post
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)
I don't have the audit package on my system.
 
  


Reply

Tags
history.db



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Store ecryptfs files inside home folder when enabling full home folder encryption in Linux Murz Linux - Security 4 10-27-2018 03:57 AM
[SOLVED] Folder keeps re-appearing when I try to delete it remn Linux - Newbie 2 10-15-2015 01:03 PM
[SOLVED] goutputstream files appearing in home folder after downloading Precise Pangolin 12.04 sunflower111 Ubuntu 2 07-23-2013 03:33 AM
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
(cache?) files appearing in home folder? Lordandmaker Linux - Newbie 4 03-22-2006 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration