Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Is there a "find file on system" command?
  • From: Robert Paulsen <robert@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 17 May 2004 06:14:21 -0500
  • Message-id: <200405170614.21967.robert@xxxxxxxxxxxxxxxxx>
On Monday 17 May 2004 03:43, Jerome Lyles wrote:
> On Friday 14 May 2004 03:06 pm, Rob Freeman wrote:
> > > I have never been able to find such a program on Linux.
> >
> > I always:
> >
> > su
> > find directory -name filename
> >
> > hence to search the entire computer for all rpm's
> >
> > find / -name *.rpm
> >
> > Need to be root
> >
> > Rob
> >
> > su
>
> Password:
> # find / -name *.rpm
> find: paths must precede expression
> Usage: find [path...] [expression]
> #
>
> What happened? Isn't '/' enough path for this command?
> Thanks,
> Jerome

You need to put quotes around the expression you are looking for if it
contains special characters that the shell will act on (in your case the *).
Try this...

find / -name "*.rpm"

You want the find command to see the *, not the shell.

--
Robert C. Paulsen, Jr.
robert@xxxxxxxxxxxxxxxxx

< Previous Next >
Follow Ups