LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   finding a file in redhat (https://www.linuxquestions.org/questions/linux-newbie-8/finding-a-file-in-redhat-410662/)

craquedndn 02-01-2006 09:56 PM

finding a file in redhat
 
I am trying to learn the use the "FIND" command and trying to find the gcc/c++ compiler....how do I do that?

TruongAn 02-01-2006 10:43 PM

Why don't you use slocate, it is faster, easier.

TruongAn 02-01-2006 11:05 PM

If you really love find, try that
Code:

find /usr/bin -name gcc -type f

spooon 02-01-2006 11:26 PM

you can use "whereis" to look for program files and related stuff in standard locations

sohny 02-01-2006 11:39 PM

Quote:

which gcc
may give the required path, If it is already in ur Path

nitinatindore 02-02-2006 12:20 AM

which gcc is the fastest way to do it, followed by
locate gcc followed by
find / -name gcc

:D Anyways if you dont bother so much
then its usually
/usr/bin/gcc or
/bin/gcc

Cheers

craquedndn 02-02-2006 01:19 AM

thanks guys...I as a 34 year old native american newbie bow before all the linux gods....lol...thanks


All times are GMT -5. The time now is 11:01 AM.