Bash find multiple file types: directories & symbolic links

To find two or more file types, use the logical OR operator.

$ find . -type d -o -type l

This example finds all directories and symbolic links in the current directory.

Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment