Re: Command which gives the location of a command

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 11/18/05

  • Next message: Mike Wagner: "Mike Wagner/Schneider is out of the office."
    Date:         Fri, 18 Nov 2005 10:30:45 +0100
    To: aix-l@Princeton.EDU
    
    

    Or "type".

    It's just an alias of "whence -v", but it's two less characters, so much
    more efficient. :-)

    -- 
    Simon Green							
    Altria ITSC Europe s.a.r.l.
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Yves
    Dorfsman
    Sent: 18 November 2005 01:51
    To: aix-l@Princeton.EDU
    Subject: Re: Command which gives the location of a command
    On Thu, 17 Nov 2005, Lamar Saxon wrote:
    > whence
    whence is a korn shell built in. Both whence and which will look in your 
    current $PATH. Whence has the advantage to tell you that an alias is an 
    alias (which stays silent).
    I *think* (no access to an AIX box right now) that whereis looks in 
    specific paths, rather than just your $PATH
    Yves.
    ----
    Yves Dorfsman                                             yves@zioup.com
                                              http://www.cuug.ab.ca/dorfsmay
                                              http://www.SollerS.ca
    

  • Next message: Mike Wagner: "Mike Wagner/Schneider is out of the office."

    Relevant Pages

    • Re: Command which gives the location of a command
      ... On Thu, 17 Nov 2005, Lamar Saxon wrote: ... whence is a korn shell built in. ... Both whence and which will look in your ... alias. ...
      (AIX-L)
    • Re: Whence Command
      ... and a Linux/Mandrake 10.1. ... Neither has a whence ... >> what does the whence command do? ... > Whence may be a builtin command. ...
      (comp.unix.questions)
    • Re: "r" (repeat command) ???
      ... B> On "some" AIX systems, I can get AIX to repeat the lastcommand I just typed, ... B> Does anyone know where this command is how one activates it as this only ... Run 'alias' to find out. ...
      (comp.unix.aix)
    • Re: Whence Command
      ... > command or builtin. ... Use the Korn shell on either, and you'll have a whence command (its a ksh ...
      (comp.unix.questions)
    • Re: Whence Command
      ... What does the man command do? ... Whence may be a builtin command. ... Try "type whence" and, if it is ...
      (comp.unix.questions)