find: paths must precede expression: 'xxxx'
Issue
- If there are two or more
*.cfgfiles in the current path, executing the commandfind / -name *.cfggenerates the below error.
# ls
anaconda-ks.cfg original-ks.cfg test.cfg
# find / -name *.cfg
find: paths must precede expression: original-ks.cfg
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.