LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2017, 02:03 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Is there a way to locate the dot home file that corresponds to a program or game?


Hi.

I play the game viruskiller. It sets high scores and I want to backup the dot file/directory that it corresponds to. I cannot find any though. Is there a way to locate the dot home file that corresponds to a program or game?

Code:
whereis viruskiller
Code:
viruskiller: /usr/games/viruskiller /usr/share/man/man1/viruskiller.1.gz
Thanks.
 
Old 07-18-2017, 02:11 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
If there is a hidden 'viruskiller' file in your /home/user directory you should be able to find it while logged into a terminal in your /home/user directory with:

Code:
ls -la
The command above will show hidden files and you can limit it so you don't show the entire contents. If it is a hidden file it will start with a dot: .viruskiller
so look for it that way.
 
Old 07-18-2017, 02:15 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by yancek View Post
If there is a hidden 'viruskiller' file in your /home/user directory you should be able to find it while logged into a terminal in your /home/user directory with:

Code:
ls -la
The command above will show hidden files and you can limit it so you don't show the entire contents. If it is a hidden file it will start with a dot: .viruskiller
so look for it that way.
Hi yancek. I know how to look but just cannot find anything resembling '.viruskiller' - I also looked for '.vk'.
 
Old 07-18-2017, 02:34 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Are there any hints in the man page?
 
Old 07-18-2017, 02:37 PM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

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

Quote:
Originally Posted by scasey View Post
Are there any hints in the man page?
Hi Sean. Nothing pops out.
 
Old 07-18-2017, 02:56 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
When you set a high score or maybe any score some file will be changed. Use find file by time stamp then.
 
Old 07-18-2017, 03:12 PM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Do you know any of the high scores? Just do a recursive file text search on one of the high scores.
Code:
grep -H -R 50200 ~/.??* | cut -d: -f1
 
Old 07-18-2017, 03:42 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Is the source available? If you can point me to that, I can probably find out for you.

Otherwise, you can strace the executable.
 
Old 07-18-2017, 04:01 PM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try
Code:
$ find . -name ".v*"
That will search subdirectories.
 
Old 07-18-2017, 04:43 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
/usr/share/viruskiller/ mebbe?
 
Old 07-18-2017, 05:11 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Depends how obtuse the code is, but I tend to rely on "locate". When all else fails, a quick strace on "open" would just about nail it as dugan suggests.
 
Old 07-18-2017, 06:05 PM   #12
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
+1 strace -f -eopen -o ...
find has options where you could look for files changed in last minutes
I thot of lsof, but it may not keep file open.

Last edited by !!!; 07-18-2017 at 06:07 PM.
 
Old 07-19-2017, 08:32 AM   #13
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

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

Quote:
Originally Posted by jefro View Post
When you set a high score or maybe any score some file will be changed. Use find file by time stamp then.
The lowest pre-set highscore is huge and would take a while to beat. Usually programs created home dot config files when they are simply opened. This is a puzzler.
 
Old 07-19-2017, 08:49 AM   #14
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by linustalman View Post
The lowest pre-set highscore is huge and would take a while to beat. Usually programs created home dot config files when they are simply opened. This is a puzzler.
The method I suggest does not require beating a high score. It only requires knowing a current high score, and assuming it is stored somewhere in plain text.

For example, if a current high score is 50200, use:

Code:
grep -H -R 50200 ~/.??*
 
Old 07-19-2017, 12:51 PM   #15
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
A game's "high score" file would not be in any user's home directory. That information is global to all users on the system. Look elsewhere.

Per-user configuration for that game appears to be in ~/.parallelrealities/virusKiller/ .

Last edited by rknichols; 07-19-2017 at 01:18 PM. Reason: Add location for per-user config files
 
2 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide a file using file permissions in linux without using dot davender84 Linux - General 4 03-26-2009 12:13 AM
how to locate file in home directory learnfast Linux - Newbie 3 03-14-2005 07:15 AM
Dot Net Program? Kikketer Linux - Software 6 12-07-2004 08:41 PM
How to locate where a program is? minm Linux - Newbie 18 08-16-2004 02:00 AM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:21 PM.

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