command to find any program/script's path

This is a discussion on command to find any program/script's path within the Linux General forums, part of the Linux Forums category; Hi there, I just need someone to remind me of he command which give you the path of any program/...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 4 Days Ago
Ahmad Humayun
 
Posts: n/a
Default command to find any program/script's path

Hi there,

I just need someone to remind me of he command which give you the path
of any program/script?

For example, lets say something is in your path variable and you are
able to run it anywhere, and we need to find where the program
actually is, what do we use:

Example
ahmad:~> python
if we need to find where this program is, there is a program that used
to do it simply like
ahmad:~> **** python
/usr/bin/python2.5

Sorry if we have rambled too much about this, but need to know this
command urgently


Regards,
Reply With Quote
  #2 (permalink)  
Old 4 Days Ago
soup_or_power@yahoo.com
 
Posts: n/a
Default Re: command to find any program/script's path

On May 8, 1:37*pm, Ahmad Humayun <ahmad.hu...@gmail.com> wrote:
> Hi there,
>
> I just need someone to remind me of he command which give you the path
> of any program/script?
>
> For example, lets say something is in your path variable and you are
> able to run it anywhere, and we need to find where the program
> actually is, what do we use:
>
> Example
> ahmad:~> python
> if we need to find where this program is, there is a program that used
> to do it simply like
> ahmad:~> **** python
> /usr/bin/python2.5
>
> Sorry if we have rambled too much about this, but need to know this
> command urgently
>
> Regards,


whereis
or
whence
Reply With Quote
  #3 (permalink)  
Old 4 Days Ago
Ahmad Humayun
 
Posts: n/a
Default Re: command to find any program/script's path

On May 8, 10:43*pm, "soup_or_po...@yahoo.com"
<soup_or_po...@yahoo.com> wrote:
> On May 8, 1:37*pm, Ahmad Humayun <ahmad.hu...@gmail.com> wrote:
>
>
>
> > Hi there,

>
> > I just need someone to remind me of he command which give you the path
> > of any program/script?

>
> > For example, lets say something is in your path variable and you are
> > able to run it anywhere, and we need to find where the program
> > actually is, what do we use:

>
> > Example
> > ahmad:~> python
> > if we need to find where this program is, there is a program that used
> > to do it simply like
> > ahmad:~> **** python
> > /usr/bin/python2.5

>
> > Sorry if we have rambled too much about this, but need to know this
> > command urgently

>
> > Regards,

>
> whereis
> or
> whence


thanks alot :D u saved my day :)

regards,
Reply With Quote
  #4 (permalink)  
Old 4 Days Ago
ray
 
Posts: n/a
Default Re: command to find any program/script's path

On Thu, 08 May 2008 10:37:57 -0700, Ahmad Humayun wrote:

> Hi there,
>
> I just need someone to remind me of he command which give you the path
> of any program/script?
>
> For example, lets say something is in your path variable and you are
> able to run it anywhere, and we need to find where the program actually
> is, what do we use:
>
> Example
> ahmad:~> python
> if we need to find where this program is, there is a program that used
> to do it simply like
> ahmad:~> **** python
> /usr/bin/python2.5
>
> Sorry if we have rambled too much about this, but need to know this
> command urgently
>
>
> Regards,


which
whereis
locate
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0