Click to See Complete Forum and Search --> : Probably an easy question.


HuggyBear
01-04-2001, 10:49 AM
Is there a way to search using "find -path" from any directory as root and it will search the entire drive not just the current and lower directories.

EX: working directory is /home. I type in "find -path *ilo.conf". Of course I am looking for lilo.conf but the only way to sucessufully find it is to go to the root directory and search from there. I undersand that this may not be an option for security purposes.

Also, is there a way to have an editor such as emacs open the file when it is found in a one line command ie "find -path *ilo.conf | emacs".

Thanks
Huggy

------------------

You know what would make a good story? Something about a clown who makes people happy, but inside he's real sad. Also, he has severe diarrhea.
-- Deep Thoughts by Jack Handey

Letalis
01-04-2001, 11:27 AM
search / -name "*ilo.conf"
would make the first one. Cant see why it should be a security problem. If youre not allowed somwhere find will tell you "/somwhere: permission not allowed"

hambleto
01-04-2001, 02:33 PM
I use
find / | grep *filenamehere*
It works for me. I got in the habit using a sun box to do that and it works find in linux. If you can, try installing locate or slocate. they are very very good search programs.

Strike
01-04-2001, 03:10 PM
Originally posted by hambleto:
I use
find / | grep *filenamehere*
It works for me. I got in the habit using a sun box to do that and it works find in linux. If you can, try installing locate or slocate. they are very very good search programs.
It'd be just as easy to use locate

HuggyBear
01-04-2001, 08:21 PM
Thanks Guys!