add new chinese translations
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
# bash
|
||||
|
||||
> Bourne-Again SHell,兼容 `sh` 的命令行解释器。
|
||||
> 此外请参阅:`zsh`,`histexpand`(历史展开)。
|
||||
> 更多信息:<https://www.gnu.org/software/bash/>.
|
||||
> Bourne-Again SHell,一个与 `sh` 兼容的命令行解释器。
|
||||
> 另见:`zsh`,`histexpand`(历史扩展)。
|
||||
> 更多信息:<https://www.gnu.org/software/bash/>。
|
||||
|
||||
- 启动交互式 shell:
|
||||
- 启动一个交互式 shell 会话:
|
||||
|
||||
`bash`
|
||||
|
||||
- 启动一个不加载启动配置的交互式的 shell 会话:
|
||||
- 启动一个不加载启动配置的交互式 shell 会话:
|
||||
|
||||
`bash --norc`
|
||||
|
||||
- 执行命令:
|
||||
- 执行特定的 [c]ommands:
|
||||
|
||||
`bash -c "{{echo '已执行bash命令'}}"`
|
||||
`bash -c "{{echo 'bash is executed'}}"`
|
||||
|
||||
- 执行脚本文件:
|
||||
- 执行特定脚本:
|
||||
|
||||
`bash {{路径/到/脚本文件.sh}}`
|
||||
`bash {{path/to/script.sh}}`
|
||||
|
||||
- 执行脚本文件,并将所有执行过的命令输出到终端:
|
||||
- E[x]ecute 特定脚本,在执行每个命令之前打印该命令:
|
||||
|
||||
`bash -x {{路径/到/脚本文件.sh}}`
|
||||
`bash -x {{path/to/script.sh}}`
|
||||
|
||||
- 执行脚本文件,并在第一个错误处终止:
|
||||
- 执行特定脚本并在第一个 [e]rror 处停止:
|
||||
|
||||
`bash -e {{路径/到/脚本文件.sh}}`
|
||||
`bash -e {{path/to/script.sh}}`
|
||||
|
||||
- 从 `stdin` 执行指定的命令:
|
||||
- 从 `stdin` 执行特定命令:
|
||||
|
||||
`{{echo "echo '已执行bash命令'"}} | bash`
|
||||
`{{echo "echo 'bash is executed'"}} | bash`
|
||||
|
||||
- 启动一个限制的 shell 会话:
|
||||
- 启动一个 [r]estricted shell 会话:
|
||||
|
||||
`bash -r`
|
||||
`bash -r`
|
Reference in New Issue
Block a user