aboutsummaryrefslogtreecommitdiff
path: root/docs/getting-started/common-command.md
diff options
context:
space:
mode:
authorShinKouyo <me@0x0f.dev>2026-11-20 13:18:36 +0000
committerShinKouyo <me@0x0f.dev>2026-11-20 13:18:36 +0000
commitad9b4ec7d58187fd3daf0e816dd382fcbd294a17 (patch)
tree1f16a64313951b42f69d172a1fc041a24b3bb75d /docs/getting-started/common-command.md
parentdocs(fix): 修复失效的锚点链接 (diff)
docs(fix): 修正命令错误与过时描述HEADmain
Assisted-by: DeepSeek-V4.1-Flash-1017 Signed-off-by: ShinKouyo <me@0x0f.dev>
Diffstat (limited to 'docs/getting-started/common-command.md')
-rw-r--r--docs/getting-started/common-command.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/getting-started/common-command.md b/docs/getting-started/common-command.md
index 7304c60..6fb1d40 100644
--- a/docs/getting-started/common-command.md
+++ b/docs/getting-started/common-command.md
@@ -7,7 +7,7 @@
- `$`: 在命令行中表示非root用户的提示符,其后闪动的光标代表等待用户输入。在[Shell](../applications/shell/shell.md)脚本中代表变量名的开始。
- `#`: 在命令行中表示root用户的提示符。在脚本中表示注释,井号后的内容会被自动忽略。
- `~`: 用以代表当前用户目录,如 `~/file`。
-- `*`: 通配符,可代指“全部”,如 `dir1/*` 指 `dir1` 下全部文件、文件夹,`dir1/file*.txt`指 `dir1` 文件夹下所有以 `file` 开头、`.txt` 结尾的文件与文件夹。在zsh下,使用通配符可能需要输入`\*`。
+- `*`: 通配符,可代指“全部”,如 `dir1/*` 指 `dir1` 下全部文件、文件夹,`dir1/file*.txt`指 `dir1` 文件夹下所有以 `file` 开头、`.txt` 结尾的文件与文件夹。在 zsh 下,通配符无匹配时会直接报错:想让它安静地展开为空,可 `setopt NULL_GLOB`;想保持原样传给命令,可给通配符加引号。
## 常见指令