add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

30
pages.zh/common/rbash.md Normal file
View File

@@ -0,0 +1,30 @@
# rbash
> 限制版 Bash shell相当于 `bash --restricted`。
> 不允许更改工作目录、重定向命令输出或修改环境变量等操作。
> 另请参见 `histexpand` 以进行历史扩展。
> 更多信息:<https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell>。
- 启动一个交互式 shell 会话:
`rbash`
- 执行一个命令然后退出:
`rbash -c "{{command}}"`
- 执行一个脚本:
`rbash {{path/to/script.sh}}`
- 执行一个脚本,在执行每个命令之前打印它:
`rbash -x {{path/to/script.sh}}`
- 从脚本中执行命令,遇到第一个错误时停止:
`rbash -e {{path/to/script.sh}}`
-`stdin` 读取并执行命令:
`rbash -s`