I want to find all files with the name java in folders containing /current/jre/bin/ and without the many permission denied errors.
So I thought find / -type d '*/current/jre/bin/*' 2>/dev/null
should do the job.
But the return is nothing. I also tried it without the *, with -wholename (with and without *), with an additional -name, -name but without -type d and some other commands.
If I instead search for the java files with find / -name 'java' 2>/dev/null
I receive eleven path, from which I only need three.