Historical command
History
-C Clear
-W Write ~/.bash_history
Save 1000 By default, can be modified in /etc/profile
Call
TAB completion
commands, directories, files
Command aliases
Alias aliases = ' Original command '
Command execution order:
Absolute path or relative path > alias > Bash's internal command > The first command found in $PATH environment variable (external command)
Configuration file:/ROOT/.BASHRC
Delete: Unalias aliases
Common shortcut keys
Input and output redirection
Standard input and output
Output redirection
Note: There are no spaces between 2 and >!
Command &>/dev/null the results into the trash.
Input redirect
Example: WC [options] [filename]
-C Statistics byte number
-W statistical number of words
-L count rows
Sequential execution of MULTIPLE commands
DD is primarily used for disk-to-copy
Command && echo yes | | Echo No
Pipe symbol |
Command 1 | Command 2 The correct output of command 1 as an object of command 2
Example: Ll-a/etc/| More
Netstat-an | grep "established"
Wildcard characters
Other special symbols in bash
Linux Learning-Shell Basics-Bash basic features