LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching for JDK using find (https://www.linuxquestions.org/questions/linux-newbie-8/searching-for-jdk-using-find-684887/)

mconstant 11-20-2008 09:39 AM

Searching for JDK using find
 
Hi. I'm having trouble getting the find command to return useful results while searching for JDK. I'm typing

find / -name "jdk*." -print

any suggestions?

TB0ne 11-20-2008 09:49 AM

Quote:

Originally Posted by mconstant (Post 3348713)
Hi. I'm having trouble getting the find command to return useful results while searching for JDK. I'm typing

find / -name "jdk*." -print

any suggestions?

Try leaving off the . in your search string.

rizwanrafique 11-20-2008 10:01 AM

I usually use something liek:

Code:

find / |grep -i jdk

mconstant 11-20-2008 10:06 AM

Also, I want to get rid of all the permission denied error messages that popup. Couldn't find a flag to supress errors in the find man page. Suggestions?

colucix 11-20-2008 10:07 AM

Or simply
Code:

locate jdk

colucix 11-20-2008 10:08 AM

Quote:

Originally Posted by mconstant (Post 3348772)
Also, I want to get rid of all the permission denied error messages that popup. Couldn't find a flag to supress errors in the find man page. Suggestions?

Either use the find command as root (if you can acquire root privileges) or redirect standard error to /dev/null
Code:

find blah blah blah 2> /dev/null


All times are GMT -5. The time now is 04:28 PM.