Linux command alias alias

When we use the bash some operations, hoping some of the more long command using some short commands to complete the input operation, we can use the alias command aliases to help us accomplish this task
alias as a bash built-in command, has some portability

alias cls=clear

alias pp="ping www.baidu.com"

In the alias command, if a space, it is recommended to use them together enclose double quotes

Alias ​​definitions are only valid in the current life cycle of the shell in the shell, even a sub-shell is invalid

When we do not want to use a certain command aliases, we only need to use an alias to complete unlias remove the alias effect

When we use the alias command defines the number of characters to complete the function of other commands, how to use the features of the original command it?

Use \ command to complete the escape to!

Guess you like

Origin www.cnblogs.com/7haoyu/p/11314782.html