1 locate
按文件名严格匹配
locate -b -r ^nginx$
2 find
find -H link1 -name file1
文件名有换行符
-print0
True; print the full file name on the standard output, followed by a null character (instead of the newline character that ‘-print’ uses). This allows file
names that contain newlines or other types of white space to be correctly interpreted by programs that process the find output. This option corresponds to
the ‘-0’ option of xargs.
find -type f -print0 | xargs -0 ls -al