Finding all files with certain extension in Unix?

find . only looks in your current directory. If you have permissions to look for files in other directories (root access) then you can use the following to find your file –

find / -type f -name "*.jdk"

If you are getting tons of permission denied messages then you can suppress that by doing

find / -type f -name "*.jdk" 2> /dev/null

Leave a Comment