Torvalds有机会聆听了自由软件运动之父Richard Stallman (理查德斯托曼,生于1953年)的一次演讲,促使他考虑转向GUN的GPL. Richard Stallman是自由软件运动的精神领袖、GNU计划以及自由软件基金会(Free Software Foundation)的创立者、著名黑客。他最大的成就是为自由软件运动创立了道德、政治以及法律框架,因而被誉为当今自由软件的斗土、伟大的理想主义者。GNU计划是由RichadStalman在1983年9月27日公开发起的,它的目标是创建一-套完全自由的操作系统。为保证GNU软件可以自由地“使用、复制、修改和发布”,所有GNU软件必须遵守GNU通用公共许可证(GNU General Public License,简称GNUGPL),GNU GPL创造性地提出了“反版权”(即Copyleft)的概念,这是一个不同于商业软件的“版权所有”(即Copyright) 的法律概念,GNU GPL并不是为了否认版权,也不禁止分发软件时收取费用或取得利润。其核心思想是任何火发布一个遵守GNU GPL的软件时,不管是收费的还是免费的,都必须将发布者具有的一切权利给予软件的接受者,必须保证软件接受者能同时收到或通过其他途径得到源程序,共自将GNU GPL加在软件的版权声明中,使软件接受者知道自己有这样的权利。GNU GPL本身也是受法律保护的版权声明。
MBR (主启动记录)
MBR不属于任何分区,不会对应到系统中的设备节点,它存放在第一个磁盘的第0轨上并且大小固定为512bytes
- boot loader固定为446bytes,存放开机所必须的信息,其作用是从哪个分区载入操作系统
- partition table大小固定为64bytes,存放了每个分区起始的, 磁柱与结束的磁柱,记录每个分区起始到结束的磁柱所需要的空间固定为16bytes,所以一个磁盘只能划分四个分区,可以使用3p+ 1e的结构来扩充。在扩展分区当中第一个逻辑分区的第一个磁区里面,也会记录自己是从哪个磁柱开始的又会在哪个磁柱结束,并且记录下一个分区是从哪个磁柱开始的,第二个逻辑分区中也…
- magic的大小固定为2bytes,存放每个bios的magic号。 (结束标志字,硬盘有效标志),固定为55AA
- GPT (GUID分区表),最多可创建128个主分区
[root@localhost ~]# history
17 w
18 who
19 whoami
20 hsgd
[root@localhost ~]# !18
who
root :0 2020-02-24 21:00 (:0)
root pts/0 2020-02-24 21:01 (:0)
[root@localhost conf.d]# uname -a
Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost conf.d]# uname -r
3.10.0-957.el7.x86_64
[root@localhost conf.d]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@hly ~]# date
2020年 02月 24日 星期一 21:28:59 CST
[root@hly ~]# date -s 21:35:00
2020年 02月 24日 星期一 21:35:00 CST
[root@hly ~]# date -s 20131013
2013年 10月 13日 星期日 00:00:00 CST
[root@hly ~]# date -s '20200224 21:31:59'
2020年 02月 24日 星期一 21:31:59 CST
[root@hly ~]# cd .
[root@hly ~]# cd ..
[root@hly /]# cd /etc
[root@hly etc]# cd .
[root@hly etc]# cd ..
[root@hly /]# cd -
/etc
[root@hly etc]# pwd
/etc
[root@hly tmp]# touch a b
[root@hly tmp]# ls -l
总用量 1224
-rw-r--r-- 1 root root 0 2月 24 21:48 a
-rw-r--r--. 1 root root 1148 2月 20 13:29 anaconda.log
-rw-r--r-- 1 root root 0 2月 24 21:48 b
[root@hly tmp]# mkdir dir
[root@hly tmp]# cd dir
[root@hly dir]# ls
[root@hly dir]# mkdir s
[root@hly dir]# ls
s
[root@hly tmp]# rmdir dir
rmdir: 删除 "dir" 失败: 目录非空
[root@hly tmp]# rm -rf dir
[root@hly tmp]# cd dir
bash: cd: dir: 没有那个文件或目录
[root@hly tmp]# ls -l
总用量 1224
-rw-r--r-- 1 root root 0 2月 24 21:48 a
-rw-r--r--. 1 root root 1148 2月 20 13:29 anaconda.log
-rw-r--r-- 1 root root 0 2月 24 21:48 b
drwxr-xr-x 2 root root 6 2月 24 22:03 f1
drwxr-xr-x 2 root root 6 2月 24 22:03 f2
drwxr-xr-x 2 root root 6 2月 24 22:03 f3
[root@hly tmp]# cp -r /tmp/f2 /tmp/f1
[root@hly tmp]# cd f1
[root@hly f1]# ls
f2
[root@hly tmp]# cp -r /tmp/f3 /tmp/f2/f33
[root@hly tmp]# cd f2
[root@hly f2]# ls
f33
[root@localhost tmp]# mv /tmp/1 /tmp/c
[root@localhost tmp]# cd c
[root@localhost c]# ll
总用量 0
drwxr-xr-x 2 root root 6 2月 26 17:44 1
[root@localhost tmp]# mv -t /tmp/c /tmp/2#加-t,就是将先写目标,后写源
[root@localhost tmp]# cd c
drwxr-xr-x 2 root root 6 2月 26 17:44 2
[root@localhost tmp]# ln -s /tmp/f1 /tmp/a#软链接,加-s
[root@localhost tmp]# cd a
lrwxrwxrwx 1 root root 7 2月 26 18:08 f1 -> /tmp/f1
[root@localhost tmp]# ln /tmp/f2 /tmp/c/f22#硬链接并且命名
[root@localhost tmp]# cd c
[root@localhost c]# ll
总用量 0
-rw-r--r-- 2 root root 0 2月 26 18:08 f22
[root@localhost tmp]# rm -rf f2#删除硬链接的源文件,链接不失效
-rw-r--r-- 1 root root 0 2月 26 18:08 f22
[root@localhost tmp]# gzip -c 3 > 3.gz#压缩并不覆盖
drwxr-xr-x 2 root root 6 2月 26 17:44 3
-rw-r--r-- 1 root root 0 2月 26 18:24 3.gz
[root@localhost tmp]# gzip 1#压缩并覆盖源文件
[root@localhost tmp]# ll
总用量 4
-rw-r--r-- 1 root root 22 2月 26 18:23 1.gz
[root@localhost tmp]# bzip2 -k 2#压缩不覆盖
[root@localhost tmp]# ll
总用量 8
-rw-r--r-- 1 root root 22 2月 26 18:23 1.gz
-rw-r--r-- 1 root root 0 2月 26 18:23 2
-rw-r--r-- 1 root root 14 2月 26 18:23 2.bz2
[root@localhost tmp]# gzip -cv a > aa.gz#压缩不覆盖且命名
drwxr-xr-x 2 root root 16 2月 26 18:08 a
-rw-r--r-- 1 root root 0 2月 26 18:29 aa.gz
[root@localhost c]# gunzip cc.gz#解压
[root@localhost c]# ll
总用量 0
-rw-r--r-- 1 root root 0 2月 26 18:30 cc
[root@localhost tmp]# bunzip2 2.bz2#解压时如果源文件和压缩文件都在,则需要先删除源文件才能解压
bunzip2: Output file 2 already exists.
[root@localhost tmp]# bunzip2 2.bz2#解压
-rw-r--r-- 1 root root 0 2月 26 18:23 2
[root@localhost tmp]# tar cvf 1.tar 1#打包且不覆盖
-rw-r--r-- 1 root root 0 2月 26 18:23 1
-rw-r--r-- 1 root root 10240 2月 26 18:41 1.tar
[root@localhost tmp]# tar zcvf 2.tar.gz 2#打包并压缩,cvf前面加z则表示gzip压缩,前面加j表示bzip2压缩
-rw-r--r-- 1 root root 0 2月 26 18:23 2
-rw-r--r-- 1 root root 102 2月 26 18:42 2.tar.gz
[root@localhost tmp]# cat f#查看文本
I LOVE YOU
But you don't know
I hope one day
you can see see me
I must good good study,day day up
[root@localhost tmp]# cat -A /tmp/f#-A参数
I LOVE YOU$
But you don't know$
[root@localhost tmp]# cat -n /tmp/f
1 I LOVE YOU
2 But you don't know
3 I hope one day
4 you can see see me
[root@localhost tmp]# cal 01 2012 > cal.txt#导入日历并打印
[root@localhost tmp]# cat cal.txt
一月 2012
日 一 二 三 四 五 六
1 2 3 4 5 6 7
[root@localhost tmp]# cal 02 2012 >> cal.txt#附加导入,不会覆盖之前的
[root@localhost tmp]# cat cal.txt
二月 2012
日 一 二 三 四 五 六
1 2 3 4
5 6 7 8 9 10 11
一月 2012
日 一 二 三 四 五 六
1 2 3 4 5 6 7
8 9 10 11 12 13 14
[root@localhost tmp]# cat > ask << "abc"#创建文件ask并且打印,输入abc结束
> dusuehfjhosi
> ifhiwehjdnlk
> jdhfabc
> abc
[root@localhost tmp]# ll
-rw-r--r-- 1 root root 34 2月 26 20:21 ask
[root@localhost tmp]# cat /tmp/f | sort
But you don't know
I believe
I hope one day
I LOVE YOU
I must good good study,day day up
Mabey you can marry with me
Then
[root@localhost tmp]# vi /etc/sysconfig/network-scripts/ifcfg-ens33#ifcfg-ens33网卡的路径
[root@localhost network-scripts]# cp ifcfg-ens33 ifcfg-ens37
[root@localhost network-scripts]# vi ifcfg-ens37
NAME="ens37"
#UUID="ca4a8b38-45fe-41b7-b8da-6cdba6ec1cb3"
DEVICE="ens37"
ONBOOT="yes"
IPADDR="192.168.252.145"
[root@localhost network-scripts]# ls | grep ens查看是否创建成功
ifcfg-ens33
ifcfg-ens37
[root@localhost ~]# nmcli con show#查看网络连接情况
NAME UUID TYPE DEVICE
ens33 d233e0c0-1595-42f3-ade4-81f08dac860e ethernet ens33
virbr0 1bf3996d-4e30-460a-81be-41c61b9d27e5 bridge virbr0
[root@localhost ~]# rpm -qa dhcp
[root@localhost ~]# yum install dhcp -y
,-y是默认yes[root@localhost ~]# cat /etc/dhcp/dhcpd.conf
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.example
# see dhcpd.conf(5) man page
ddns-update-style none;ignore client-updates;
)、子网网段声明、地址配置选项、地址配置参数,在上面文件的下面做以下修改,并保存退出ddns-update-style none;#定义了dns服务动态更新的类型,类型有none不支持动态更新、interim互动更新模式、ad-hoc特殊更新模式
ignore client-updates;#忽略/允许(allow)客户机更新dns记录
subnet 192.168.252.0 netmask 255.255.255.0{#分配到IP所在网段和子网掩码,要注意这里的大括号{
range 192.168.252.10 192.168.252.100;#指定租用IP地址的范围(动态)
# 静态指定客户端的地址,这里没有成功,不知道为什么dhcp服务启动不了,所以暂时放着,要指定客户端IP地址的话。可以将范围缩小
# host zhi{
# hardware ethernet 00:0c:29:cd:61:b1;
# fixed-address 192.168.252.150;给客户指定地址
# }
default-lease-time 86400;#默认租约时间
max-lease-time 518400;#最大租约时间
option routers 192.168.252.2;#网关地址
option domain-name-servers 114.114.114.114,8.8.8.8;#系统会修改/etc/resolv.conf文件,设置dns域名服务器
}
[root@localhost ~]# systemctl status dhcpd.service#查看dhcp运行状态,一般开机不会自动启动
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-01 12:56:49 CST; 4s ago
[root@localhost ~]# systemctl enable dhcpd#开启dhcp服务=service dhcpd start
systemctl restart network;systemctl restart dhcpd.service
[root@localhost ~]#dhclient -r#释放原有IP地址
[root@localhost ~]#dhclient#dhcp获取IP地址
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="dhcp"#这里选择dhcp
[root@localhost ~]# systemctl restart network
[root@localhost ~]# ifconfig
ens33: flags=4163,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.252.10 netmask 255.255.255.0 broadcast 192.168.252.25#动态获取的IP地址
[root@localhost network-scripts]# cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]# netstat -tunlp | grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6932/sshd
tcp6 0 0 :::22 :::* LISTEN 6932/sshd
[root@localhost ~]# runlevel//默认为5
N 5
[root@localhost ~]# systemctl set-default multi-user.target //重启情况下将默认运行等级换为3
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
[root@localhost ~]# systemctl get-default //查看默认运行等级为3
multi-user.target
[root@localhost ~]# rpm -q yum
yum-3.4.3-163.el7.centos.noarch
[root@localhost ~]# rpm -ql yum
/etc/logrotate.d/yum
/etc/yum
/etc/yum.conf
/etc/yum.repos.d
[root@localhost ~]# rpm -qi yum
Name : yum
Version : 3.4.3
Release : 163.el7.centos
[repo-name]
name=This is repository's description
baseurl=1#规定了仓库所在位置,可以是本地地址,也可以是网络地址
enabled=1
gpgcheck=1
[root@localhost ~]# yum search whois
......
whois.x86_64 : Improved WHOIS client
名称和简介匹配 only,使用“search all”试试。
[root@localhost ~]# netstat -tunlp | grep vnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 24895/Xvnc
tcp6 0 0 :::5901 :::* LISTEN 24895/Xvnc
[root@localhost ~]# head -1 /etc/passwd
root:x:0:0:root:/root:/bin/bash
[root@localhost ~]# head -5 /etc/group
root:x:0:
bin:x:1:
[root@localhost ~]# tail -1 /etc/shadow
hly:$6$EQxsgi4K8FEf2TiU$oilhnhIeMeXjt9pqMHe4ZXTdup/SjYVDAx2bbKbIqcv1us6KvN9lcXdIfYDh/2GV2iPzV8XdRbFIpzQx7wCwN1:18312:0:99999:7:::
[root@localhost ~]# head -3 /etc/gshadow
root:::
bin:::
[hly@localhost root]$ whoami
hly
[hly@localhost root]$ groups hly
hly : hly wheel
[hly@localhost root]$ id hly
uid=1000(hly) gid=1000(hly) 组=1000(hly),10(wheel)
[yan1@localhost hly]$ last
hly :0 :0 Thu Feb 20 13:35 - crash (3+01:03)
[root@localhost hly]# useradd -u 1101 yan1
[root@localhost hly]# su yan1
[yan1@localhost hly]$ id yan1
uid=1101(yan1) gid=1101(yan1) 组=1101(yan1)
[root@localhost hly]# useradd -rm yan2#加-rm自动创建家目录
[root@localhost hly]# su yan2
[yan2@localhost hly]$ head -1 /etc/passwd
root:x:0:0:root:/root:/bin/bash
[root@localhost hly]# useradd -r yan3#创建系统用户
[root@localhost hly]# su yan3
bash-4.2$
[root@localhost ~]#useradd -G 1101 yan4#将yan4用户加到1101附加组,但是也会生成和自己uid一样的组1102
[root@localhost ~]# id yan4
uid=1102(yan4) gid=1102(yan4) 组=1102(yan4),1101(yan1)
yan4:x:1102:1102::/home/yan4:/bin/bash
[root@localhost ~]# vi yan1.txt#批量创建多用户,不能留有空行
hly1:x:2000:2000::/home/hly1:/bin/bash
hly2:x:2001:2002::/home/hly2:/bin/bash
[root@localhost ~]# newusers yan1.txt#批量用户导入
[root@localhost ~]# cat !$
cat yan1.txt
hly1:x:2000:2000::/home/hly1:/bin/bash
hly2:x:2001:2001::/home/hly2:/bin/bash
[root@localhost ~]# vi passwd#创建密码文本
hly1:123456
hly2:123456
[root@localhost ~]# chpasswd < passwd#导入密码
[root@localhost ~]# cp -r /etc/skel/. /home/hly1#批量创建用户,出现家目录缺少文件
[root@localhost ~]# cp -r /etc/skel/. /home/hly2
[root@localhost ~]# cd /home
[root@localhost home]# ll
总用量 2
drwx------ 3 hly1 hly1 78 2月 28 21:44 hly1
drwx------ 3 hly2 hly3 78 2月 28 21:44 hly2
[root@localhost home]# usermod -l y7 yan7#修改用户名,这里显示无法修改,进程被使用
usermod: user yan7 is currently used by process 30933
[root@localhost home]# ps -aux#查看用户登录后台进程,发现yan7在使用,输入exit退出登录
yan7 30933 0.0 0.1 116740 3244 pts/0 S 20:26 0:00 bash
[yan7@localhost root]$ exit
exit
[root@localhost ~]# usermod -l y7 yan7#这里修改成功
drwx------ 5 y7 yan1 144 2月 28 22:27 yan7
[root@localhost home]# usermod -G hly2 hly3#把hly3加到hly2组中和上面附加组一样
[root@localhost home]# id hly3
uid=2002(hly3) gid=2002(hly3) 组=2002(hly3),2001(hly2)
[root@localhost ~]# passwd -l hly
Locking password for user hly.
passwd: Success
[root@localhost ~]# cat /etc/shadow#锁定用户hly,会发现密码处多了两个!
hly:!!$6$rOMzMIlKEeRFJQpT$1eb2Fm4KNeRi/c4uO8fpDbuAMkYDeJ/7FN3Vv.TzZ
yan1:x:1001:yan3
[hly@localhost home]$ newgrp yan1#hly不是yan1的组员,所以要密码
Password:
Invalid password.
[root@localhost m1]# ll
总用量 0
-rw-r--r-- 1 root root 0 3月 3 21:29 f3#可以看到f3文件的相应权限
[root@localhost tmp]# chmod -R g+w m1/f3#给m1目录下的f3的g添加写权限
[root@localhost tmp]# cd m1
[root@localhost m1]# ll
总用量 0
-rw-rw-r-- 1 root root 0 3月 3 21:29 f3#f3的写权限设定成功
drwxr-xr-x 2 root root 6 3月 3 21:29 m2#m2的权限可见
[root@localhost tmp]# chmod g-x m2#对m2目录的g进行减去执行权限
drwxr--r-x 2 root root 6 3月 3 21:29 m2
-rw-r--r-- 1 root root 0 3月 3 21:29 f1#可以看到f1o的权限只有r,即读
[root@localhost tmp]# chmod o=w f1#让f1o的权限只有w,即写
-rw-r---w- 1 root root 0 3月 3 21:29 f1#可以看到f1中o的权限变为w
-rw-r--r-- 1 root root 0 3月 3 21:29 f2#可见f2的权限值为644
[root@localhost tmp]# chmod 755 f2#7代表u的rwx,4+2+1。5代表g的r-x,o同理
[root@localhost tmp]# ll
总用量 0
-rwxr-xr-x 1 root root 0 3月 3 21:29 f2#权限值变为755
drwx------ 15 hly hly 294 3月 4 13:30 hly
drwx------ 3 hly1 hly1 78 3月 4 13:25 hly1
[root@localhost home]# chown hly1:hly1 hly#修改hly的拥有者和组名
[root@localhost home]# ll
总用量 0
drwx------ 15 hly1 hly1 294 3月 4 13:30 hly#拥有者和组名由hly变为hly1
drwx------ 3 hly1 hly1 78 3月 4 13:25 hly1
[root@localhost home]# ll
总用量 0
drwx------ 15 hly hly 284 3月 3 21:28 hly
drwx------ 3 hly1 hly1 78 3月 4 13:25 hly1
[root@localhost home]# chown hly hly1#修改hly1的拥有者为hly
drwx------ 15 hly hly 294 3月 4 13:30 hly
drwx------ 3 hly hly1 78 3月 4 13:25 hly1#hly1变为hly
-rw-r--r-- 1 root root 0 3月 4 14:11 f2
drwx------ 15 hly hly 294 3月 4 13:30 hly
[root@localhost home]# chgrp hly f2#将f2的root组改为hly组
-rw-r--r-- 1 root hly 0 3月 4 14:11 f2
-rw-r--r-- 1 root hly 0 3月 4 14:11 f2#f2的u没有x权限
[root@localhost home]# chmod u+s f2#修改f2权限为特殊权限
[root@localhost home]# ll
总用量 0
-rwSr--r-- 1 root hly 0 3月 4 14:11 f2#可以看到u权限的x变为S,由于之前就没有x权限,所以这里用大写表示
[root@localhost home]# ll /usr/bin/passwd#passwd有s特殊权限
-rwsr-xr-x. 1 root root 27832 6月 10 2014 /usr/bin/passwd
[hly@localhost home]$ passwd#普通用户可以更改
更改用户 hly 的密码 。
为 hly 更改 STRESS 密码。
(当前)UNIX 密码:
[root@localhost home]# chmod u-s /usr/bin/passwd#给u去掉s权限
[root@localhost home]# ll /usr/bin/passwd
-rwxr-xr-x. 1 root root 27832 6月 10 2014 /usr/bin/passwd
[hly1@localhost ~]$ passwd#普通用户修改密码失败
更改用户 hly1 的密码 。
为 hly1 更改 STRESS 密码。
(当前)UNIX 密码:
passwd: 鉴定令牌操作错误
[root@localhost home]# chmod 7755 m2#特殊权限对目录的作用,给m2
[root@localhost home]# ll
drwsr-sr-t 2 root root 6 3月 4 17:17 m2
[root@localhost home]# cd m2
[root@localhost m2]# touch f3
[root@localhost m2]# mkdir m3
-rw-r--r-- 1 root root 0 3月 4 17:17 f3
drwxr-sr-x 2 root root 6 3月 4 17:17 m3
-rw-r--r-- 1 root root 0 3月 8 17:59 a
[root@localhost tmp]# setfacl -m u:yan:x a#给用户yan添加对文件a的acl权限
-rw-r-xr--+ 1 root root 0 3月 8 17:59 a#可以看到多了一个+,表示acl权限
[root@localhost tmp]# setfacl a#查看文件a的acl权限
# file: a
# owner: root
# group: root
user::rw-
user:yan:--x#yan对a的x权限
group::r--
mask::r-x
other::r--
[root@localhost tmp]# setfacl -m d:u:yan:wx c#给目录c设定默认acl权限
[root@localhost tmp]# getfacl c
# file: c
# owner: root
# group: root
user::rwx
group::r-x
mask::r-x
other::r-x
default:user::rwx
default:user:yan:-wx
default:group::r-x
default:mask::rwx
default:other::r-x
[root@localhost tmp]# cd c
[root@localhost c]# touch cc#在目录c下边创建文件cc
[root@localhost c]# getfacl cc#可见cc继承了c的acl权限
# file: cc
# owner: root
# group: root
user::rw-
user:yan:-wx #effective:-w-
group::r-x #effective:r--
mask::rw-
other::r--
[hly@localhost ~]$ sudo passwd root#hly用root权限来修改密码
更改用户 root 的密码 。
新的 密码:
重新输入新的 密码:
passwd:所有的身份验证令牌已经成功更新
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
hly ALL=(ALL) ALL#添加hly用户的权限为所有,第一列ALL为用户,第二列ALL为主机,第三列ALL为身份 ,第四列ALL为执行什么,即在什么主机上以什么身份执行什么命令
先在编辑虚拟机里面添加,再用命令echo “- - -” > /sys/class/scsi_host/hostn/scan 扫描磁盘磁盘信息,其中 n代表数字0-4扫描,粘贴命令注意英文的引号
磁盘配置:fdisk
分区:
磁盘配置及分区(fdisk用于MBR,小于2T,parted使用GPT,大于2小于18)
挂载磁盘
卸载磁盘:unmount,可以卸载磁盘(unmount /dev/sdb1),也可以卸载挂载目录(unmount /tmp/yb)