LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Finding files (https://www.linuxquestions.org/questions/linux-general-1/finding-files-161142/)

brentos 03-22-2004 07:21 PM

Finding files
 
This might be a really stupid question but I really can't get it to work

I am trying to use the command line command file to find a file and I just can't seem to get it to work right. So I will give an example of what I want to do.

Lets say i know the file admin.txt is somewhere in the path /home/jello/
Now it could be anywhere in that directory or in any sub directory under it so i tried just the command
find ./ admin.txt
But it seems to search all the directorys and all the files but comes up with nothing, it even does this when I try a file I know is there.

So does anyone have any ideas of how to work this find command

Thanks

darthtux 03-22-2004 07:27 PM

find /home/jello -name admin.txt

itsjustme 03-22-2004 07:27 PM

cd /home/jello

find . -name 'admin.txt'

brentos 03-22-2004 08:24 PM

Thanks so much, I feel stupid asking but I looked in the man page and didn't see the -name option


All times are GMT -5. The time now is 10:44 PM.