$ which -a chia
/usr/bin/chia
/bin/chia
$ ll /bin/chia
lrwxrwxrwx 1 root root 49 janv. 9 08:40 /bin/chia -> /opt/chia/resources/app.asar.unpacked/daemon/chia*
$ ll /usr/bin/chia
lrwxrwxrwx 1 root root 49 janv. 9 08:40 /usr/bin/chia -> /opt/chia/resources/app.asar.unpacked/daemon/chia*
$ ll /opt/chia/resources/app.asar.unpacked/daemon/chia
-rwxr-xr-x 1 root root 5522760 janv. 3 20:57 /opt/chia/resources/app.asar.unpacked/daemon/chia*
$ chia
bash: /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/chia: No such file or directory
I'm lost: it seems that the command chia that is executed is not one of these listed by which -a
.
What the heck is happening here?
A little history of this computer: the chia blockchain which includes the command chia was once installed in /usr/lib/chia-blockchain. But this directory does not exist anymore.
Can someone explain how the shell comes to the idea of starting chia from /usr/lib/chia-blockchain?
I did the "work of which -a" manually by checking the presence of a chia executable in each of the directories in my $PATH and only found the 2 that are listed...
I also do not have a variable "chia" defined. (echo $chia => nothing)
Thanks in advance for taking some time to answer.
best regards
Philippe
Edit asked by terdon (thanks):
$ type -a chia
chia is aliased to `/usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/chia'
chia is /usr/bin/chia
chia is /bin/chia
Yeah, looks like there is an alias.
$ readlink -f /bin/chia
/opt/chia/resources/app.asar.unpacked/daemon/chia
$ readlink -f /usr/bin/chia
/opt/chia/resources/app.asar.unpacked/daemon/chia
How can I remove this "chia alias" ?