Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Is there a "find file on system" command?
  • From: James Knott <james.knott@xxxxxxxxxx>
  • Date: Mon, 17 May 2004 20:35:03 -0400
  • Message-id: <40A95A37.2050806@xxxxxxxxxx>
Robert Paulsen wrote:
On Monday 17 May 2004 03:43, Jerome Lyles wrote:

# find / -name *.rpm
find: paths must precede expression
Usage: find [path...] [expression]

What happened? Isn't '/' enough path for this command?

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.

It works fine for me without the quotes. However, this is on Red Hat 7.3.

< Previous Next >