First, the command alias
Alias rm= ' Rm–i ': The prompt will appear at any time when the command is deleted; alias Vi=vim
Alias does not add parameters, so the command alias is displayed in the system.
Unalias Canceling aliases
Ii. Order of History
History 6 shows the last 6 records
-C clears the current Shell's history record
-W writes history to file (default: ~/.bash_history)
The maximum number of records is controlled by the variable histsize.
Description: The history command is automatically written to the user after logging out of the login: ~/.bash_history file, which reads the record after the user logs on to bash.
“! "The Use of:
! 6 implementation of sixth record
!! Execute previous record
! Man executes the most recent record that starts with man
Third, the order of Linux lookup execution commands is
Type–a Order of command execution results
Also in the following order:
Alias> commands in the built-in commands > $PATH variables
Linux Learning Path: command aliases, history, and command lookup execution order