# # # #1. Device Access # # #
1. Equipment identification
/DEV/XDXN # #硬盘设备/DEV/SDA1
/dev/cdrom # #光驱
/dev/mapper/* # #虚拟设备
2. Use of the device
# # "Discovery of Equipment" # #
Fdisk-l # #查看真实存在的设备
Cat/proc/partitions # #系统能够识别的设备
Blkid # #系统能够挂载使用的设备id
DF # #查看设备被系统使用的情况
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/91/25/wKioL1j0VN3jwXO0AAw82VTEcJE379.png-wh_500x0-wm_ 3-wmp_4-s_3274832214.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-36-03.png "alt=" Wkiol1j0vn3jwxo0aaw82vtecje379.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/91/26/wKiom1j0VOSA1WGFAAusvcduIwQ536.png-wh_500x0-wm_ 3-wmp_4-s_2555698088.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-37-16.png "alt=" Wkiom1j0vosa1wgfaausvcduiwq536.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/91/25/wKioL1j0VOzx5mzWAAyu6yn9nkA363.png-wh_500x0-wm_ 3-wmp_4-s_904741452.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-37-45.png "alt=" Wkiol1j0vozx5mzwaayu6yn9nka363.png-wh_50 "/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/91/25/wKioL1j0VPPwO_GvAAvhu_4Nu-M420.png-wh_500x0-wm_ 3-wmp_4-s_3508555621.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-38-08.png "alt=" wKioL1j0VPPwO_ Gvaavhu_4nu-m420.png-wh_50 "/>
# # "Use of equipment" # #
1. Mounting of the device
Mount Device mount point
Mount/dev/sdb1/mnt #把系统中第二块硬盘的第一个分区挂载到 the/mnt directory
2. Uninstalling the device
Umout Equipment | mount point
If the following conditions occur:
[Email protected]oundation0 ~]# UMOUNT/DEV/SDB1
Umount:/home/kiosk/desktop/photo:target is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1))
Solve:
FUSER-KVM Device | mount point-K kill,-V show details,-m scan device
# # # #2. Soft and Hard Links # # #
Ls-i # #查看文件节点号
Ln-s/file/file1 # #软链接
Ln/file/file1 # #硬链接
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/91/27/wKiom1j0VpqSEmQUAAtCvVmfeSE238.png-wh_500x0-wm_ 3-wmp_4-s_824201560.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-44-26.png "alt=" Wkiom1j0vpqsemquaatcvvmfese238.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/91/27/wKiom1j0VqGxztBsAAtVgRwsBmk108.png-wh_500x0-wm_ 3-wmp_4-s_3654714876.png "style=" Float:none; "title=" screenshot from 2017-04-17 13-45-37.png "alt=" Wkiom1j0vqgxztbsaatvgrwsbmk108.png-wh_50 "/>
# # # #3. File Search # # #
1.locate filename # #在文件数据库中搜索filename信息, updatedb update file database
2.find
Find Lookup Location-condition condition value-exec action {} \;
-name
-not conditions
-user
-group
-size
-perm
--maxdepth
--mindepth
-A
-O
-type F File
Catalog D
C-Character device
B-Block Equipment
s set of section words
L Link
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/91/27/wKiom1j0WE_DimGCAAuIr98rbhw411.png-wh_500x0-wm_ 3-wmp_4-s_4184235553.png "title=" screenshot from 2017-04-17 13-52-48.png "alt=" Wkiom1j0we_ Dimgcaauir98rbhw411.png-wh_50 "/>
DD If=/dev/zero of=/mnt/file1 bs=1024 count=10
DD If=/dev/zero of=/mnt/file2 bs=1024 count=20
DD If=/dev/zero of=/mnt/file3 bs=1024 count=30
Find/mnt-size 10k
find/mnt-size-10k
Find/mnt-size +10k
LINUX redhat 14th Unit documentation