Skip to content

修复一个错别字和一个语法错误 #118

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

Merged
merged 1 commit into from
Jun 5, 2022
Merged
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
4 changes: 2 additions & 2 deletions _2020/course-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Fri 10 Jan 2020 11:49:31 AM EST
missing:~$
```

这里,我们执行了 `date` 这个程序,不出意料地,它打印出了当前的日前和时间。然后,shell 等待我们输入其他命令。我们可以在执行命令的同时向程序传递 _参数_ :
这里,我们执行了 `date` 这个程序,不出意料地,它打印出了当前的日期和时间。然后,shell 等待我们输入其他命令。我们可以在执行命令的同时向程序传递 _参数_ :

```console
missing:~$ echo hello
Expand Down Expand Up @@ -149,7 +149,7 @@ missing:~$ ls -l /home
drwxr-xr-x 1 missing users 4096 Jun 15 2019 missing
```

这个参数可以打印出更加详细地列出目录下文件或文件夹的信息。首先,本行第一个字符 `d` 表示
这个参数可以更加详细地列出目录下文件或文件夹的信息。首先,本行第一个字符 `d` 表示
`missing` 是一个目录。然后接下来的九个字符,每三个字符构成一组。
(`rwx`). 它们分别代表了文件所有者(`missing`),用户组(`users`) 以及其他所有人具有的权限。其中 `-` 表示该用户不具备相应的权限。从上面的信息来看,只有文件所有者可以修改(`w`),`missing` 文件夹 (例如,添加或删除文件夹中的文件)。为了进入某个文件夹,用户需要具备该文件夹以及其父文件夹的“搜索”权限(以“可执行”:`x`)权限表示。为了列出它的包含的内容,用户必须对该文件夹具备读权限(`r`)。对于文件来说,权限的意义也是类似的。注意,`/bin` 目录下的程序在最后一组,即表示所有人的用户组中,均包含 `x` 权限,也就是说任何人都可以执行这些程序。

Expand Down