Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Python-100-Days
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangkq
Python-100-Days
Commits
e54ce0b8
Commit
e54ce0b8
authored
Jun 20, 2018
by
jackfrued
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了文档中的bug
parent
494968c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
file-mode.png
Day31-35/res/file-mode.png
+0
-0
玩转Linux操作系统.md
Day31-35/玩转Linux操作系统.md
+1
-5
No files found.
Day31-35/res/file-mode.png
0 → 100644
View file @
e54ce0b8
74.1 KB
Day31-35/玩转Linux操作系统.md
View file @
e54ce0b8
...
...
@@ -450,12 +450,8 @@ Linux系统的命令通常都是如下所示的格式:
> 说明:通过上面的例子可以看出,用`chmod`改变文件模式比特有两种方式:一种是字符设定法,另一种是数字设定法。除了`chmod`之外,可以通过`umask`来设定哪些权限将在新文件的默认权限中被删除。
长格式查看目录或文件时显示结果及其对应权限的数值如下表所示。
| 文件类型 | 所有者权限 | 同组用户权限 | 其他用户权限 |
| --------- | ----------------------------- | ------------------------------ | ------------------------------ |
| d(目录) | r w x
<br>
读 写 执行
<br>
7 | r - x
<br>
读 执行
<br>
5 | r - x
<br>
读 执行
<br>
5 |
| -(文件) | r w -
<br>
读 写
<br>
6 | r - -
<br>
读
<br>
4 | r - -
<br>
读
<br>
4 |
| l(链接) | r w x
<br>
读 写 执行
<br>
7 | r w x
<br>
读 写 执行
<br>
7 | r - x
<br>
读 执行
<br>
5 |
!
[](
./res/file-mode.png
)
2.
**chown**
- 改变文件所有者。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment