Copy Code code as follows:
#在后台执行 cmd command
CMD &
#命令序列. Execute multiple commands on the same line
CMD1; Cmd2
Execute multiple commands in a #在当前 shell in a set of forms
{cmd1; cmd2;}
Execute multiple commands in a #在子 shell in a set of forms
(CMD1; cmd2)
#管道. As input to CMD2 as CMD1 's execution output
cmd1 | Cmd2
#命令替换. As an cmd1 parameter with CMD2 's execution output
Cmd1 ' CMD2 '
Replace #POSIX command. Allow nesting
CMD1 $ (CMD2)
#POSIX arithmetic replacement. Expression The result of an expression as a parameter to cmd
CMD $ ((expression))
#AND. Perform cmd1, and then execute CMD2 (if cmd1 execution succeeds). If cmd1 execution fails, CMD2 is not executed
CMD1 && CMD2
#OR. Either execute CMD1 or execute cmd2 (if cmd1 execution fails). If cmd1 execution succeeds, CMD2 is not executed
cmd1 | | Cmd2
#NOT. Executes CMD and produces an exit status code of 0 (if Cmd's exit state is not 0). Otherwise, a Non-zero exit status code is generated (if CMD's exit State is 0).
! Cmd