mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 20:35:26 +02:00
!: add Chinese translation (#11709)
* !: add Chinese translation --------- Co-authored-by: Ein Verne <git@einverne.info> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
70b20b7ae8
commit
a95bc099de
1 changed files with 24 additions and 0 deletions
24
pages.zh/common/!.md
Normal file
24
pages.zh/common/!.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Exclamation mark
|
||||
|
||||
> Bash 内置命令,用于替换历史记录中找到的命令。
|
||||
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
|
||||
- 使用`sudo`重新执行上一个命令:
|
||||
|
||||
`sudo !!`
|
||||
|
||||
- 通过在`history`中出现的`行号`来调取命令:
|
||||
|
||||
`!{{行号}}`
|
||||
|
||||
- 调取`history`中的倒数第`数字`条命令:
|
||||
|
||||
`!-{{数字}}`
|
||||
|
||||
- 调取以`字符串`开头的最近执行的命令:
|
||||
|
||||
`!{{字符串}}`
|
||||
|
||||
- 调取上一个命令的参数给`当前命令`:
|
||||
|
||||
`{{当前命令}} !*`
|
Loading…
Add table
Reference in a new issue