LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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: PCLinux, Slackware
Posts: 9,427

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
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
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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.8.2003
Posts: 5,435

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Are there any hints in the man page?
 
Old 07-18-2017, 02:37 PM   #5
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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: 20,978

Rep: Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403
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,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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: 10,044

Rep: Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622
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,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
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: 19,779

Rep: Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572
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: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
+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
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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: CentOS
Posts: 4,555

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:01 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