📜  Linux控制运算符

📅  最后修改于: 2020-12-08 08:35:42             🧑  作者: Mango

Linux控制操作员

在控制运算符的帮助下,您可以在命令行中输入多个命令。它有助于执行控制函数。

使用控制运算符

Control Operator Usage
;semicolon More than one command can be used in a singleline.
& ampersand Command ends with & and doesn’t wait for command to finish.
$?dollar question mark Used to store exit code of the previous command.
&& double ampersand Used as logical AND.
|| double vertical bar Used as logical OR.
Combining && and || Used to write if then else structure in command line.
# pound sign Anything written after # will be ignored.
\ escaping special characters