I create an alias as my current user in the bash shell, which I can see using the alias command.
When I switch user without the -, i.e. su testuser, the alias is not carried into the new user's environment.
Any idea why?
|
|
|
This is because |
||||
|
|
|
From
As asoundmove and Barun explained, |
|||
|
|
|
Thing is, when you create any alias in the terminal, it is temporary. If you open another terminal while you are logged in as the same user, you won't be able to access that alias. So, you need to store them permanently, as said by asoundmove, in |
||||
|
|