Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-22-2004, 08:21 PM   #1
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
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

Old 03-22-2004, 08:27 PM   #2
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
find /home/jello -name admin.txt
Old 03-22-2004, 08:27 PM   #3
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
cd /home/jello

find . -name 'admin.txt'
Old 03-22-2004, 09:24 PM   #4
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks so much, I feel stupid asking but I looked in the man page and didn't see the -name option


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding Files Through Urpmi ??? ddrfreak Mandriva 8 12-12-2004 12:00 PM
Finding six month old files arockia Linux - Software 11 09-01-2004 10:37 AM
finding files in C++ poeta_boy Programming 2 07-11-2004 02:25 AM
Finding files Nicksan Linux - Software 3 06-30-2003 08:16 PM
Finding files question... tarballed Linux - General 1 03-05-2003 02:01 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration