基本语法
bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ...
long 选项
| 参数 | EN 解释 | 中文翻译 | Remark |
|---|---|---|---|
| --debug | |||
| --debugger | |||
| --dump-po-strings | |||
| --dump-strings | |||
| --help | |||
| --init-file | |||
| --login | |||
| --noediting | |||
| --noprofile | |||
| --norc | |||
| --posix | |||
| --rcfile | |||
| --restricted | |||
| --verbose | |||
| --version |
| Function | 命令 | 文字解释 | 示例 | 示例解释 |
|---|---|---|---|---|
| 帮助 | bash --help | 展示帮助信息 | ||
| bash -c help | 展示有关 Shell 内置命令的更多信息 | |||
| bash -c "help set" | 展示有关 Shell 选项的更多信息 | |||
| Version | bash --version | 展示版本信息 |
Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.