LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to locate file in home directory (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-locate-file-in-home-directory-301408/)

learnfast 03-14-2005 06:54 AM

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.

krishvij 03-14-2005 06:58 AM

go to your home directory using the cd command. Then, issue the command

ls -R . fi*

druuna 03-14-2005 06:58 AM

Hi,

Find could do that:

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

Hope this is what you want.

learnfast 03-14-2005 07:15 AM

yes, that find syntax is exactly what I was looking for:

find -name fi*

works great, thanks!


All times are GMT -5. The time now is 12:20 PM.