◊ Basic framework:
A) wildcard characters *? [1-3] [123]
b) input/output redirection < << > >> 2>
c) Piping |
d) Background jobs jobs BG FG
e) Historical History!+ Historical Command number
f) Command Completion tab Press TAB to display all occurrences
1 , wildcard characters
* Match All ( multiple ) characters
? Match a single character
2 , input and output redirection
> Output Redirection (Overwrite)
2> Error Output redirection
&> includes both functions (> and 2>)
>> Append output to File
< input redirection
<< here document (statistics two the same delimiter between the text information WC <<)
3 , Piping
Standard output of the previous command as standard input for the latter command
is a means of inter-process communication
The representation in the kernel is a memory buffer.
4 , background jobs
& Create a background job and return control directly to the shell
Jobs queries the current job
CTRL + Z Stop the foreground job
BG puts a stop-state job in the background
FG puts background work in front of the desk
5 , historical records
History Query Historical Table
!+ History command to execute a command in the history table
6 , aliases
Alias
Unalias
/etc/bashrc
. The profile name is used to execute the corresponding configuration file (. . BASHRC)
04.bash Foundation