New to linux

I need to be able to search for a specific name of an image inside a folder.

on windows for example if i wanted to search for dogs within a folder of images that had 300000 images i would just put dogs in the search field, then any file name with dogs in it would come up.

how do i do the same thing in linux? :wall::wall::wall::wall::wall::wall::wall::wall:

find folder_name -type f -name "dogs"

Good , however I would use 'locate' , if you update it's database it is much faster than anything else

Please explain how to do either one of these. where is locate? where do i put that code in at?

ooooooooooooooh now I got the problem....you have NEVER used linux/unix...sorry mate and I'm guessing I am apologising on behalf of itkamaraj as well...

OK
well we both assume the best solution always is through a given command - through a shell. Most users of OSs other than Microsoft's feel this way. If not ,then all system administrators feel this way,and that is a given.

If you have a Desktop ,then right click on the screen and choose Terminal. Or go to the Applications menu and find the one called 'terminal'

There ,when you open it give the command given by itkamaraj .

find . -type f -name "dogs"

try that and we'll take it from there.

this is the message i am getting:
faith@linux-hwga:~/Desktop> f-images"pokemon"
If 'f-imagespokemon' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf f-imagespokemon
no i havent ever used linux before.

ok great....

So faith@linux-hwga:~/Desktop> is your prompt. Anything you write , you type it there..

Now why would you type "f-images"pokemon"" ? Nobody seems to have suggested that...

Instead , try

find . -type f -name "pokemon"

Waiting for feedback

that didnt work. let me try and re-explain what i need to do. i have an images folder that has sub folders inside it with over 300000 images. i need the ability to search inside that folder for specfic things like roses, pokemon, racing ect.

OK then , I've created this directory tree:
3 folders, named images01,images02,images03

They contain files with names like pokemon.jpg,racing.jpg,roses.jpg
One of the filenames is ,for example pokemon01-a.jpg

this is a list of where the files are located

michnmi@OpenSolaris:~/Documents/Scripts/Unix.comForum/findtest$ ls -lR
.:
total 5
drwxr-xr-x 2 michnmi staff 6 2011-06-03 16:39 images01
drwxr-xr-x 2 michnmi staff 6 2011-06-03 16:41 images02
drwxr-xr-x 2 michnmi staff 5 2011-06-03 16:41 images03

./images01:
total 2
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:38 pokemon01-a.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:39 racing001-a.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:38 roses012-b.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:38 roses015-c.jpg

./images02:
total 2
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:41 pokemon121-kl.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:39 racing011-b.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:39 racing08-fe.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:40 roses234-ak.jpg

./images03:
total 2
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:39 racing058-cd.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:39 racing118-ce.jpg
-rw-r--r-- 1 michnmi staff 0 2011-06-03 16:41 roses114-ee.jpg
michnmi@OpenSolaris:~/Documents/Scripts/Unix.comForum/findtest$ 

Now imagine , for your case that my 'findtest' directory is your 'images' folder.

This folder, has three sub folders (images01,images02,images03). I believe from the list I've given above, it is fairly obvious where each file is located.

Now from the 'prompt' , I'll change into my images folder (mine is called,as i've said 'findtest', using the cd command. Then I'll execute the find command. I'll play with grep as well to see if the output that is returned makes it easier for you.

So, scenario is I'm in my home folder and I'm begining....

michnmi@OpenSolaris:~$ 
michnmi@OpenSolaris:~$ cd Documents/Scripts/Unix.comForum/findtest/
michnmi@OpenSolaris:~/Documents/Scripts/Unix.comForum/findtest$ find . | grep pokemon
./images01/pokemon01-a.jpg
./images02/pokemon121-kl.jpg
michnmi@OpenSolaris:~/Documents/Scripts/Unix.comForum/findtest$ 

This means that from where I am (/export/home/michnmi/Documents/Scripts/Unix.comForum/findtest) the 'relative' location of the files that contain the word pokemon in their filename is this one:

./images01/pokemon01-a.jpg
./images02/pokemon121-kl.jpg

pokemon01-a.jpg is under folder 'images01' which is a subfolder of the folder we are in at the moment we ran the

find .

command (the '.' is important) and pokemon121-kl.jpg is under images02 folder which is...etc

So, how are we now?

MM

ty for being patient with me. i am enclosing what the folders look like say i am looking for apple i need it to search all of images folder because they may be in other subfolders other than ap.

am i making any sense?

You haven't enclosed anything? :confused:

We know you want to search in all folders inside something. That's what find does. It searches and shows everything inside the folder you wanted. find . by itself would print every directory and file it finds, starting in the current directory and working up. By adding more restrictions to find, you narrow down what it finds into what you want.

I think just -name by itself may have been too restrictive -- I doubt you have any files named just 'name'. -name 'name' wouldn't even find 'name.jpg'.

How about find /path/to/images -iname '*rose*' , that should find more. -iname is better than -name because it's case insensitive. Linux filenames are case sensitive, unlike Windows ones.

great suggestion...

P.S
Here too, confused about 'enclosing'