[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Where are pri.domain files..?
- Subject: Re: [cobalt-users] Where are pri.domain files..?
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Sat Jun 10 08:47:18 2000
- Organization: nobaloney.net
Rodolfo Paiz wrote:
> find <directory> [-name <name>] [-print]
The RaQ series, like every linux platform I've used (it's probably a
"gnu" version of find) don't require the "-print".
Here's how I do it...
# find / -name filenametosearchfor
Note that if you use wildcards you need a set of double quotes (")
around the "filenametosearchfor" (like that).
Note also that I do it as root. Why? Because if you don't do it as
root you get so many error messages on the screen for directories for
which you don't have access that it's hard to see the actual filenames
and locations the program returns. You can resolve this difficulty, if
you must run the program as a non-privileged user, by running it this
way:
$ find / -name filenametosearchfor > tempfile
Then use cat or less to read the tempfile. This works because the
errors still go to the screen, while the filenames/paths the program
returns get redirected to tempfile.
(Unless you want a lot of "tempfiles" cluttering your system, you should
delete it after you're done. And of course you must be in a directory
for which you have rights to write a file for this to work.)
Hope this helps.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA 92517
voice: (909) 787-8589 * fax: (909) 782-0205