alias and which in Ubuntu : moving from Fedora to Ubuntu
Nils Kassube
kassube at gmx.net
Tue Oct 25 05:51:42 UTC 2016
Kevin Wilson wrote:
> I am moving from Fedora to Ubuntu.
>
> In Fedora , running "which AliasName" shows the alias.
>
> For example, if I have
>
> $alias myAlias='echo test'
>
> $which myAlias
> alias myAlias='echo test'
> /usr/bin/echo
>
> In Ubuntu, this does not work.
> After:
> alias myAlias='echo test'
> Runnin:
> $which myAlias
>
> shows nothing.
You can try the type command, even if it isn't exactly the same:
~/ > LC_ALL=C type myAlias
myAlias is aliased to `echo test'
Nils
More information about the ubuntu-users
mailing list