Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Instead, it returns the following error:

find: paths must precede expression: file1.log
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
d41d8cd98f00b204e9800998ecf8427e  -

Is there something wrong with the command syntax?

(encountered this problem upon trying the accepted answer of this stackoverflow question)

share|improve this question
'*' is expanded by shell before it is given to find command, see mpi-sb.mpg.de/departments/rg1/teaching/unixffb-ss98/… Thus quote it. – Jiri Xichtkniha Oct 11 '13 at 11:11
Thanks, fixed it by enclosing the pattern in single quotations. – silvernightstar Oct 11 '13 at 11:12
@silvernightstar While you should generally wait a while before accepting an answer (to allow for people from other time zones to offer answers), do consider upvoting and accepting Jiri Xhichtkniha's answer if you feel the question has been answered to your satisfaction. – Michael Kjörling Oct 11 '13 at 12:44
up vote 5 down vote accepted

* is expanded by shell before it is given to find command, see A Guide to Unix Shell Quoting. Thus it has to be quoted; use '*' instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.