SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: colonel on September 18, 2016, 02:15:11 PM

Title: Searching for a file
Post by: colonel on September 18, 2016, 02:15:11 PM
I downloaded a file and then cut and moved it to anther HDD. Its not traceable. How do I get a good search engine? :-X
Title: Re: Searching for a file
Post by: Dai_trying on September 19, 2016, 10:25:30 AM
You could try using "locate" if it says command not recognised you can install it with sudo apt-get install mlocate when it is installed you must run sudo updatedb then type locate <text> and it will list files with the text string either in the name or the path, I usually find it gives more results than you would want but it can always be refined further with a grep like this locate quicktest | grep doc and it will only show files with doc in the name/path. I find it very useful, but remember to "updatedb" before you search to include / exclude files that have been added / removed recently.
HTH
Title: Re: Searching for a file
Post by: colonel on September 19, 2016, 02:16:15 PM
Got it but should the text be in inverted commas? or < >?
Title: Re: Searching for a file
Post by: colonel on September 19, 2016, 02:19:46 PM
I got a msg bash: syntax error near unexpected token `newline'
Title: Re: Searching for a file
Post by: paxmark1 on September 20, 2016, 01:02:36 AM
example

paxmark@raunes:~$ locate Jacobshav
/home/paxmark/Documents/EOTW/Greenland-Ellsmere/Jacobshavn
/home/paxmark/Documents/EOTW/Greenland-Ellsmere/Jacobshavn/29 May compared to 18 July north branch Jakobshavn crevasse development.png
/home/paxmark/Documents/EOTW/Greenland-Ellsmere/Jacobshavn/Jacobshavn-20170807_Sentinel-2A_B432_10m.gif
/home/paxmark/Documents/EOTW/Greenland-Ellsmere/Jacobshavn/Jacobshavn_Bed-S2A+Bed_20160718_JH..jpg




Title: Re: Searching for a file
Post by: py-thon on September 20, 2016, 03:42:40 PM
@ colonel
It would be useful if you had added your DE in the first question. At least some file managers have this function incorporated so you don't have to install anything to search for a file by (part of) its name.
Title: Re: Searching for a file
Post by: dhinds on September 21, 2016, 05:56:50 AM
Quote from: colonel on September 18, 2016, 02:15:11 PM
I downloaded a file and then cut and moved it to anther HDD. Its not traceable. How do I get a good search engine? :-X

Install spacefm, which includes spacefm file seach
Title: Re: Searching for a file
Post by: Dai_trying on September 21, 2016, 03:27:36 PM
@colonel
    Sorry I should have said without the "<>". I must check my forum settings as I don't get any notifications otherwise I would have replied sooner...
Title: Re: Searching for a file
Post by: colonel on September 23, 2016, 02:30:18 PM
Thank guys for the help btw whats DE? :-\
Title: Re: Searching for a file
Post by: paxmark1 on September 24, 2016, 05:50:32 AM
Desk Top Environment.  Some varieties are Gnome, KDE, LXQT LXDE Mate, XFCE and numerous others. 
Title: Re: Searching for a file
Post by: colonel on September 26, 2016, 07:26:18 AM
Thanks guys