mirror of
https://github.com/Estom/notes.git
synced 2026-03-31 09:30:45 +08:00
first up data
This commit is contained in:
12
Linux/学习说明.md
Normal file
12
Linux/学习说明.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# 课程说明
|
||||
|
||||
## 学习材料
|
||||
|
||||
* 《鸟哥的私房菜》有点厚,学不下去了。
|
||||
* [菜鸟教程](https://www.runoob.com/linux/linux-install.html)
|
||||
* [W3cschool的教程](https://www.w3cschool.cn/linux/linux-tutorial.html)
|
||||
* [C语言中文网](http://c.biancheng.net/linux_tutorial/)
|
||||
|
||||
## 学习方式
|
||||
|
||||
* 看网络教程,做好初步的笔记。然后根据自己感兴趣的方面进行深入。
|
||||
0
Linux/第10章 性能管理
Normal file
0
Linux/第10章 性能管理
Normal file
87
Linux/第1章 文件管理.md
Normal file
87
Linux/第1章 文件管理.md
Normal file
@@ -0,0 +1,87 @@
|
||||
# 第6章 Linux的文件权限域与目录配置
|
||||
|
||||
## 1 用户与用户组
|
||||
### 用户
|
||||
* owner
|
||||
* 可以属于多个不同group
|
||||
### 用户组
|
||||
* 包含一组用户
|
||||
* 一组用户拥有相同的权限。
|
||||
|
||||
### others
|
||||
* 其他人,不属于用户组。
|
||||
|
||||
### 记录位置
|
||||
* 用户内容-/etc/passwd
|
||||
* 密码内容-/etc/shadow
|
||||
* 组内容-/etc/group
|
||||
|
||||
|
||||
## 2 文件权限
|
||||
|
||||
### 查看文件属性
|
||||
```
|
||||
ls-al
|
||||
-rw-r--r-- l root root 42304 Sep 4 18:26 install.log
|
||||
```
|
||||
* 文件类型 [-]普通文件[d]目录[l]连接文件[b]接口设备[c]串行端口设备
|
||||
* 文件权限[rwx]分别代表拥有者、用户组、其他人的操作权限
|
||||
* 表示多少文件名连接到这个节点
|
||||
* 表示拥有者名字
|
||||
* 表示用户组
|
||||
* 文件容量
|
||||
* 创建或者修改日期
|
||||
* 文件名字
|
||||
|
||||
### 改变文件属性
|
||||
```
|
||||
chgrp [-R] groupname dirname/filename
|
||||
chgrp users install.log
|
||||
```
|
||||
* -R 递归更改组
|
||||
|
||||
```
|
||||
chown [-R] ownername dirname/filename
|
||||
chwon estom install.log
|
||||
```
|
||||
* -R 递归更改拥有者
|
||||
|
||||
```
|
||||
chmod [-R] xyz dirname/filename
|
||||
chmod 777 install.log
|
||||
chmod u/g/o/a +/-/= r/w/x dirname/filename
|
||||
```
|
||||
* -R 递归更改文件内容
|
||||
* 1~7分别对应二进制文件权限
|
||||
* ugoa 分别设置user,group,other,all的权限。
|
||||
|
||||
### 文件权限的意义
|
||||
做好访问控制。
|
||||
|
||||
## 3 目录配置
|
||||
|
||||
### 目录配置标准FHS
|
||||
|
||||
* /:根目录,与开机、还原、系统修复有关
|
||||
* /bin:单用户维护模式下还能被操作的命令。
|
||||
* /sbin:system系统用来开机修复还原系统所需要的命令
|
||||
* /boot:开机会使用到的文件
|
||||
* /dev:任何设备与接口设备都是以文件的形势存在于这个目录当中。
|
||||
* /etc:系统主要配置文件目录。
|
||||
* /home:用户文件夹
|
||||
* /lib:放置系统运行过程中用到的函数库。
|
||||
* /media:用于挂在可删除的设备DVD光盘等。
|
||||
* /mnt:暂时挂在额外的设备
|
||||
* /opt:第三方软件安装的目录。第三方软件习惯上放到/usr/local/目录下。
|
||||
* /root:系统管理员的主文件夹
|
||||
* /srv:service网络服务启动后用来存取数据的目录
|
||||
* /tmp:一般用户或正在执行的程序暂时防止文件的地方,任何人都能访问,可以情理。
|
||||
* /proc:虚拟文件系统,是内存的虚拟文件对应,能够查看内存装填,包括系统内核、进程、外部设备的状态以及网络状态。其对应内存空间,本身不占用任何硬盘空间。
|
||||
* /sys:虚拟的文件系统,记录与内核相关的信息。包括目前已经加载到内核的模块与内核检测到的硬件设备信息。
|
||||
|
||||
### 特殊的目录配置
|
||||
* /usr:可分享的不可变动的数据。UNIX Software Resource的缩写。所有的软件存在在这个目录下。
|
||||
* /usr/bin:绝大部分用户可以直接使用的命令
|
||||
* /usr/include:C/C++等程序语言的头文件与包含文件
|
||||
* /usr/lib:包含软件的函数库、目标文件,以及一般用户惯用的执行文件和脚本
|
||||
|
||||
8
Linux/第2章 用户管理.md
Normal file
8
Linux/第2章 用户管理.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# 文件与目录管理
|
||||
|
||||
## 目录与路径
|
||||
## 文件与目录管理
|
||||
## 文件内容查阅
|
||||
## 文件与目录的默认权限与隐藏权限
|
||||
## 命令与文件查询
|
||||
## 权限与命令的关系
|
||||
0
Linux/第3章 磁盘管理.md
Normal file
0
Linux/第3章 磁盘管理.md
Normal file
0
Linux/第4章 进程管理.md
Normal file
0
Linux/第4章 进程管理.md
Normal file
0
Linux/第5章 设备管理.md
Normal file
0
Linux/第5章 设备管理.md
Normal file
0
Linux/第6章 软件包管理.md
Normal file
0
Linux/第6章 软件包管理.md
Normal file
0
Linux/第8章 网络管理.md
Normal file
0
Linux/第8章 网络管理.md
Normal file
0
Linux/第9章 内核管理.md
Normal file
0
Linux/第9章 内核管理.md
Normal file
0
Linux/补充1 Vim编辑器.md
Normal file
0
Linux/补充1 Vim编辑器.md
Normal file
0
Linux/补充2 Shell命令.md
Normal file
0
Linux/补充2 Shell命令.md
Normal file
Reference in New Issue
Block a user