- Record command history: The commands we've knocked on, Linux will have a record, saved in the. bash_history file in your home directory. (Note: The current command will be saved in the. bash_history file only if the user exits the current shell normally) "! "Common Applications: (1)!! Represents the execution of the previous tributary; (2)! N (n represents a number), which represents the nth command in the execution history; (3)! A string, such as!ta, represents the most recent TA-prefaced command in the command history;
- Tributary and filename completion: Press the TAB key to help replenish instructions, paths, or filenames, and press TAB two times to list all instructions or files;
- Alias: alias to long command aliases; Unalias de-alias; Syntax: alias [command alias]=[' specific Command ']
- Wildcard: * to match 0 or more characters,? to match a character;
Basics of learning shell scripts (i) (Learning to record posts)