Find the current path file

windows

dir /b/s/w Cache*.jpg

linux

Example
Matching based on files or regular expressions
List all files and folders in the current directory and subdirectories

find.
Find file names ending with .txt in the /home directory

find /home -name "*.txt"
Same as above, but ignoring case

find /home -iname "*.txt"
Find all files ending with .txt and .pdf in the current directory and subdirectories

find . ( -name “.txt" -o -name ".pdf” )

or

find. -name " .txt" -o -name " .pdf" to
match the file path or file

find /usr/ -path " local "
matches the file path based on regular expressions

find. -regex ".*(.txt|.pdf)$"
Same as above, but ignoring case

find . -iregex “.*(.txt|.pdf)$”

Quote:

https://www.cnblogs.com/jiftle/p/9707518.html

Guess you like

Origin blog.csdn.net/qq_17802895/article/details/109442969