Page 1 of 1

Is there a search facility within Raspbian?

Posted: Fri Aug 31, 2012 7:41 am
by bigdavethehorn
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?

Re: Is there a search facility within Raspbian?

Posted: Fri Aug 31, 2012 8:01 am
by bredman
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.

Re: Is there a search facility within Raspbian?

Posted: Fri Aug 31, 2012 9:27 am
by bob_binz
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

Re: Is there a search facility within Raspbian?

Posted: Fri Aug 31, 2012 10:56 am
by bigdavethehorn
Magic! Thanks to both of you!