LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2006, 09:56 PM   #1
craquedndn
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Question 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?
 
Old 02-01-2006, 10:43 PM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
Why don't you use slocate, it is faster, easier.
 
Old 02-01-2006, 11:05 PM   #3
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
If you really love find, try that
Code:
find /usr/bin -name gcc -type f
 
Old 02-01-2006, 11:26 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
you can use "whereis" to look for program files and related stuff in standard locations
 
Old 02-01-2006, 11:39 PM   #5
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
Quote:
which gcc
may give the required path, If it is already in ur Path
 
Old 02-02-2006, 12:20 AM   #6
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

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

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

Cheers
 
Old 02-02-2006, 01:19 AM   #7
craquedndn
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks guys...I as a 34 year old native american newbie bow before all the linux gods....lol...thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding the file size harrylmh Programming 8 04-29-2006 03:59 PM
Finding the last in a file list .. hrafn Programming 1 03-21-2005 03:45 AM
Finding File Size cmfarley19 Linux - General 1 01-24-2005 08:36 AM
finding most recent file wedgeworth Linux - Software 3 10-22-2003 01:53 PM
finding a file pcdebb Linux - Newbie 8 10-21-2003 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration