shell script to set and delete aliases

1. What is the alias

For example, most people have two or even many names, if you Jiao Yang Aerospace, but then, almost all the family will not be called full name, only the petit name, a word is enough, why?
To put it plainly, it is to facilitate, so the alias is the same, all for quick, easy, and this is set to almost shortcuts.

2. Set the alias (used alias)

Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description
Write user-level shell Recall
注意:只对当前用户有使用的权利
Here Insert Picture Description
Here Insert Picture Description

source .bashrc

Here Insert Picture Description
Here Insert Picture Description

Preparation of system-level files

vim /etc/profile

Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description
但是 su student 不行Here Insert Picture Description
Preparation of a system-level variablesHere Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description

3. Delete alias

alias 查看

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/yyh_linux_note/article/details/91882658