Page 1 of 1

Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Fri Dec 28, 2012 11:41 pm
by jarble
Is there any way to search for files in Linux Mint 14 Cinnamon Edition? I still haven't figured out how to search for files from the Start menu.

Re: Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Fri Dec 28, 2012 11:58 pm
by Nefter
I use CTRL+F while browsing files in Nemo (default file manager) to find files by name.

If youre familiar with terminal, you can use "find" command to specify what exactly you want.

Re: Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Sat Dec 29, 2012 2:45 am
by Nick Payne
I use gnome-search-tool. With it you can perform filename searches within a directory structure, and also add further options such as search for specified text in the files and by size, date, etc.

If it's not already installed:

Code: Select all

sudo apt-get install gnome-search-tool

Re: Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Sat Dec 29, 2012 10:38 am
by 3.14159
I typically use "locate" in a terminal to find things. I'm lazy that way.

Code: Select all

localhost ~ $ locate ./ smb.conf
/etc/samba/smb.conf
/etc/samba/smb.conf.master
/etc/samba/smb.conf.old
/usr/share/doc/nemo-share/examples/smb.conf
/usr/share/man/man5/smb.conf.5.gz
/usr/share/samba/smb.conf
/var/lib/ucf/cache/:etc:samba:smb.conf
In any case, good luck!

Re: Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Sat Dec 29, 2012 2:06 pm
by altair4
Nick Payne wrote:I use gnome-search-tool. With it you can perform filename searches within a directory structure, and also add further options such as search for specified text in the files and by size, date, etc.

If it's not already installed:

Code: Select all

sudo apt-get install gnome-search-tool
Don't know if anyone's interested but after you do what Nick Payne suggested you might want to try this:

[1] Create a file in the nemo-scripts folder:

Code: Select all

gedit $HOME/.gnome2/nemo-scripts/Find
[2] Add this contents:

Code: Select all

#!/bin/sh
exec gnome-search-tool --hidden --contains= --path="$(echo $NEMO_SCRIPT_SELECTED_FILE_PATHS)"
I don't know if anyone else has noticed this but everything you put in code tags now induces leading spaces when you paste. Make sure all leading spaces are removed from this script.

EDIT: Left off kind of an important step: Make the file executable:

Code: Select all

chmod +x $HOME/.gnome2/nemo-scripts/Find
[3] If you have Nemo open close it and open it again.

Now go to a folder > Right Click > Scripts > Find. If I did this right it should open up gnome-search-tool to that folder so you can limit your searchs to specific folders through nemo.

Re: Search for files in Linux Mint 14 (Cinnamon Edition)

Posted: Wed Jan 13, 2016 8:31 pm
by elcico
Now (linuxmint 17) you can also use the package called tracker, that also allows text search inside files.
Namastè _/\_