`find -path` explained

It's used for globbing the entire current path. If you have -path '*bin/*rch' and you're currently looking at /sbin/ausearch then it will match.


-path does not (re)define the start path. It refers to the combination of the start path and the relative path of the currently examined object.

You may by this e.g. find all files within a subdirectory src no matter on which level.

"do not treat / or . specially" means that * can match both file names including the extension and into subdirectories: [...]/file* would match both /file.txt and /files/foo.bar

Tags:

Find