User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Is there a search facility within Raspbian?

Fri Aug 31, 2012 7:41 am

So, I'm looking for a particular .ini file on a fresh Raspbian Wheezy install, but I don't know where it is located. I found Raspbian's file manager and wandered about "My Computer" with no luck.

Is there a search function within Raspbian?

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Is there a search facility within Raspbian?

Fri Aug 31, 2012 8:01 am

To do this from the command line, if you need to find xxx.ini...
sudo find / -name "xxx.ini"

To get a list of all the .ini files in the system
sudo find / -name "*.ini" | less
Use the up/down arrows to move in the list, press q to quit.

This is not particular to Raspbian, it will work for any Linux distribution.

User avatar
bob_binz
Posts: 441
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: Is there a search facility within Raspbian?

Fri Aug 31, 2012 9:27 am

An alternative (not sure of the most efficient option) is mlocate -

Code: Select all

sudo apt-get install mlocate
Then run

Code: Select all

sudo updatedb 
(which I think is run regularly anyway, once installed.) Once updatedb has finished, use

Code: Select all

locate <search-term>  
i.e.

Code: Select all

locate mylost.ini

User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Re: Is there a search facility within Raspbian?

Fri Aug 31, 2012 10:56 am

Magic! Thanks to both of you!

Return to “Raspberry Pi OS”