LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find a file? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-a-file-4175584061/)

Entwicklung 07-07-2016 08:56 PM

How to find a file?
 
I was using Almalah diary program on a SuSE computer. Something happened to this computer so I took the hard drive out, plugged it into a docking station connected to another computer. Hard drive was recognized but I don't know how to find the Almalah diary program. "Find Almalah" doesn't work.

yancek 07-07-2016 09:17 PM

Well what command did you actually use? "Find Almalah" certainly won't work. It would help if you at least knew the upper level directory to start with. Was it in a /home/user directory or somewhere else. You could get a lot of info on using the find command just using the search function here at LQ or doing it with google.

AwesomeMachine 07-07-2016 10:40 PM

You could install
Code:

mlocate
and run
Code:

updatedb
with the drive partitions mounted. When it finishes, run
Code:

locate Almalah
and you should get a list of all files with Almalah in the path.

jamison20000e 07-07-2016 10:48 PM

http://www.twotoasts.de/index.php/catfish/
and or:
Quote:

Code:

find / -type f -exec grep -H 'text-to-find-here' {} \;


frankbell 07-07-2016 10:54 PM

For executables, you can also use whereis. See man whereis for details. I like it for finding executables because locate can return a huge amount of output--all the libraries and so on.

find is a powerful command, but its syntax is not quite so straightforward.

http://www.tecmint.com/35-practical-...-find-command/

Most Linux file managers also have a "Find" item somewhere on their menus.

jamison20000e 07-07-2016 11:01 PM

Is my understanding that you want to find the files you created originally with the application? I.e; e.g: in ~\/home :Pengy:

jamison20000e 07-07-2016 11:02 PM

Wow, \/ looks like V... :D

JJJCR 07-07-2016 11:12 PM

Try this:

Quote:

ls ./ -ld Almalah


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