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!
When we use some command, we want to command, with the changes in the environment and have some flexibility to change, this time we need to use command substitution
Replace command $ () using the `` have the same effect as
the command in a sub-command to replace the results of its implementation process
Create a file, the file name is the file-2018-02-28-14-54-45.txt, the middle number must be displayed as the current time and date touch file - $ (date +% F-% H-% M-% S) .TXT
And run at different time points generated file name is different