Author Topic: Searching for a file  (Read 769 times)

Offline colonel

  • Newbie
  • *
  • Posts: 28
Searching for a file
« 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

Offline Dai_trying

  • Newbie
  • *
  • Posts: 38
Re: Searching for a file
« Reply #1 on: September 19, 2016, 10:25:30 am »
You could try using "locate" if it says command not recognised you can install it with
Code: [Select]
sudo apt-get install mlocate when it is installed you must run
Code: [Select]
sudo updatedb then type
Code: [Select]
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
Code: [Select]
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

Offline colonel

  • Newbie
  • *
  • Posts: 28
Re: Searching for a file
« Reply #2 on: September 19, 2016, 02:16:15 pm »
Got it but should the text be in inverted commas? or < >?

Offline colonel

  • Newbie
  • *
  • Posts: 28
Re: Searching for a file
« Reply #3 on: September 19, 2016, 02:19:46 pm »
I got a msg bash: syntax error near unexpected token `newline'

Offline paxmark1

  • Full Member
  • ***
  • Posts: 207
Re: Searching for a file
« Reply #4 on: September 20, 2016, 01:02:36 am »
example

Code: [Select]
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



Don't make a FrankenDebian

Offline py-thon

  • Jr. Member
  • **
  • Posts: 68
Re: Searching for a file
« Reply #5 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.
Tower: Sparky 64bit MATE
Netbook: Sparky 32bit MATE

Offline dhinds

  • Full Member
  • ***
  • Posts: 153
Re: Searching for a file
« Reply #6 on: September 21, 2016, 05:56:50 am »
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

Offline Dai_trying

  • Newbie
  • *
  • Posts: 38
Re: Searching for a file
« Reply #7 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...

Offline colonel

  • Newbie
  • *
  • Posts: 28
Re: Searching for a file
« Reply #8 on: September 23, 2016, 02:30:18 pm »
Thank guys for the help btw whats DE? :-\

Offline paxmark1

  • Full Member
  • ***
  • Posts: 207
Re: Searching for a file
« Reply #9 on: September 24, 2016, 05:50:32 am »
Desk Top Environment.  Some varieties are Gnome, KDE, LXQT LXDE Mate, XFCE and numerous others. 
Don't make a FrankenDebian

Offline colonel

  • Newbie
  • *
  • Posts: 28
Re: Searching for a file
« Reply #10 on: September 26, 2016, 07:26:18 am »
Thanks guys