Sujet : Re: Path and/or alias finding
De : heller (at) *nospam* deepsoft.com (Robert Heller)
Groupes : comp.os.linux.miscDate : 14. Jun 2024, 19:50:02
Autres entêtes
Organisation : Deepwoods Software
Message-ID : <m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
References : 1 2 3
User-Agent : TkNews 3.0 (1.2.17)
At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <
robin_listas@es.invalid> wrote:
On 2024-06-14 16:38, Lew Pitcher wrote:
On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:
On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), db wrote:
>
I like to make life easy so I wrote a one-line script for extracting the
contents of a tar file. I copied it into the /bin directory so I can run
it from anywhere.
[snip]
Why doesn't it work from bin/ ?
>
Red face time.
I just found out that I have an alias called tarx in
my .bashrc. In fact, someone asked me about this and
I answered in the negative, without checking. My apologies!
Apology accepted. :-)
Glad you found (and presumably fixed) your problem.
What command would show what exact incantation is used? Ie, what
path/binary, or what alias?
which tarx?
For instance:
cer@Telcontar:~> which l
which: no l in
(/home/cer/bin:/usr/local/bin:/usr/bin:/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sbin:/usr/sbin)
cer@Telcontar:~>
But it is an alias in my system
This depends on the shell...
marchhare% which dir
dir: aliased to ls -F -C
marchhare% echo $SHELL
/bin/tcsh
-- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364Deepwoods Software -- Custom Software Serviceshttp://www.deepsoft.com/ -- Linux Administration Servicesheller@deepsoft.com -- Webhosting Services