How to create command aliases in linux?
For example, I'd like to make alias for ssh root@host
Thank you?
|
|
Which shell? Assuming bash, put this kind of thing in your
|
|||
|
|
|
Only for your user, edit your .bashrc
To add Alias
To remove Alias
|
|||
|
|
|
I like to create a .bash_aliases file for portability between my systems I use. add this to your .bashrc if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi you can then add aliases to this file such as
also after adding a alias you will need to exit/open your terminal so the changes will take affect. OR try
|
||||
|
|