alias and which in Ubuntu : moving from Fedora to Ubuntu

Kevin Wilson wkevils at gmail.com
Tue Oct 25 04:59:07 UTC 2016


Hello,
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.

Any idea - is there any setting or any way to get the same result as
in Fedora ?

Regards,
Kevin




More information about the ubuntu-users mailing list