Ok, I want to run a find command on specified directories and I want to search for multiple file types like *.exe, *.scr, *.bat, *.pif, etc. The problem is that I can't seem to figure out how to make the find command include multiple file types. Excluding multiple file types (or names) would be an acceptable solution also.
What I have come up with so far is:
find /var/ \( -name '*.exe' -user apache -fprintf /root/suid.txt '%#m %u %p\n' \)
It works great, but I need it to find multiple file types. Running it twice is not acceptable (unless there is a way to append to the log file instead of overwriting it?)
Ref post:
What I have come up with so far is:
find /var/ \( -name '*.exe' -user apache -fprintf /root/suid.txt '%#m %u %p\n' \)
It works great, but I need it to find multiple file types. Running it twice is not acceptable (unless there is a way to append to the log file instead of overwriting it?)
Ref post: