linux set command alias

Set/change alias-available before restart
alias name='command line'

Set/change alias-permanent use

If you want the alias to take effect automatically every time you log in, add the alias to /etc/profile or ~/.bashrc. Then # source ~/.bashrc
If you want every user to have aliases in effect, add the aliases to the end of /etc/bashrc, and then # source /etc/bashrc
syntax is the same as short-term use syntax

Delete alias
unalias name

Guess you like

Origin blog.csdn.net/sxhexin/article/details/105899267