LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-22-2004, 07:21 PM   #1
brentos
Member
 
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

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

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

Rep: Reputation: 47
cd /home/jello

find . -name 'admin.txt'
 
Old 03-22-2004, 08:24 PM   #4
brentos
Member
 
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
 
  


Reply



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 11:00 AM
Finding six month old files arockia Linux - Software 11 09-01-2004 09:37 AM
finding files in C++ poeta_boy Programming 2 07-11-2004 01:25 AM
Finding files Nicksan Linux - Software 3 06-30-2003 07:16 PM
Finding files question... tarballed Linux - General 1 03-05-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:02 AM.

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