mirror of
https://github.com/wangdoc/bash-tutorial.git
synced 2025-12-20 02:18:48 +08:00
Merge pull request #87 from fanofxiaofeng/patch-1
Some checks failed
Bash tutorial CI / Generating pages (push) Has been cancelled
Some checks failed
Bash tutorial CI / Generating pages (push) Has been cancelled
Update condition.md
This commit is contained in:
@@ -156,7 +156,6 @@ fi
|
||||
|
||||
以下表达式用来判断文件状态。
|
||||
|
||||
- `[ -a file ]`:如果 file 存在,则为`true`。
|
||||
- `[ -b file ]`:如果 file 存在并且是一个块(设备)文件,则为`true`。
|
||||
- `[ -c file ]`:如果 file 存在并且是一个字符(设备)文件,则为`true`。
|
||||
- `[ -d file ]`:如果 file 存在并且是一个目录,则为`true`。
|
||||
|
||||
Reference in New Issue
Block a user