LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2005, 07:54 AM   #1
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
how to locate file in home directory


I simply want to find all files OR directories like "fi*" anywhere (recursively) in my /home directory (I downloaded firefox and want to find it).

I've tried all kinds of varations of locate, find and grep, all with various results.

- so what is the command, if I am in my home directory to say "find me all files/directories that start with fi*"

Thanks.
 
Old 03-14-2005, 07:58 AM   #2
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Rep: Reputation: 15
go to your home directory using the cd command. Then, issue the command

ls -R . fi*
 
Old 03-14-2005, 07:58 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Find could do that:

find /home/yourloginname -name "fi*" -print

Hope this is what you want.
 
Old 03-14-2005, 08:15 AM   #4
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Original Poster
Rep: Reputation: 15
yes, that find syntax is exactly what I was looking for:

find -name fi*

works great, thanks!
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.forward file not working for user having it's home directoryon NFS mounted directory skverma_in Linux - General 0 02-14-2005 03:54 AM
Samba with ADS as a home directory file server? xwoz Linux - Software 0 08-16-2004 08:50 AM
.xession-errors file in my home directory drxsmurf Linux - Software 3 05-06-2004 10:01 PM
core.2200 888.0 memory dump - file just appeared in my home directory Lakota Linux - Newbie 2 10-06-2003 10:25 AM
.cshrc file not in home directory on RH8 or RH9? aaron268 Linux - Newbie 4 05-30-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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