!

Bash 内置命令,用于替换历史记录中找到的命令。 更多信息:https://gnu.org/software/bash/manual/bash.html#Event-Designators.

sudo !!

!{{行号}}

!-{{数字}}

!{{字符串}}

{{当前命令}} !*

{{当前命令}} !$

!:-

!{{字符串}}:p