I'd like to find files whose name contain "Mar" or "Jun", how can I do this?
Your first approach (
So the only possible matches were files that were named exactly "Jun" and "Mar", i.e. none.
Instead, do the following:
This command will work
[max@localhost ~]$ find / -type f -name Mar -o -name Jun ./Mar ./Jun
Then this is the answer
find / -type f -name "*Mar*" -o -type f -name "*Jun*"