[Solved] find command error: paths must precede expression

Execute the following command

find . -name *.sh

Error finding: paths must precede expression

Solution: when searching multiple files, you need to add single quotation marks
to

find . -name '*.sh'
or
find . -name \*.sh

Read More: