linux's docs

5.2.1: 基础命令-find -name报错


1. 错误信息

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

ls test*
test2.sh  test.log  test.sh

2. 解决办法

find . -name "test*"
./test.sh
./test2.sh
./test.log

扩展阅读:关于find -name报错“find: paths must precede expression:”

Contents