Skip to content

Update linux-cli-dir.md #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/linux/cli/linux-cli-dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ dr-xr-xr-x 4 root root 4096 Apr 19 2012 boot
- 第 2、5、8 位表示写权限,如果用"w"字符表示,则有写权限,如果用"-"字符表示没有写权限。
- 第 3、6、9 位表示可执行权限,如果用"x"字符表示,则有执行权限,如果用"-"字符表示,则没有执行权限。

```bash
d rwx r-x r-x
↑ ↑↑↑ ↑↑↑ ↑↑↑
│ │││ │││ │││-其他用户执行权限 (x/-)
│ │││ │││ │└─ 其他用户写权限 (w/-)
│ │││ │││ └── 其他用户读权限 (r/-)
│ │││ ││└──── 属组用户执行权限 (x/-)
│ │││ │└───── 属组用户写权限 (w/-)
│ │││ └────── 属组用户读权限 (r/-)
│ ││└──────── 属主用户执行权限 (x/-)
│ │└───────── 属主用户写权限 (w/-)
│ └────────── 属主用户读权限 (r/-)
└──────────── 文件类型 (该文件是目录)
```

#### 1.2.1. Linux 文件属主和属组

```bash
Expand Down