First, device access
/DEV/XDXN #硬盘设备/dev/sda1
/dev/cdrom #光驱
/dev/mapper/* #虚拟设备
Second, the use of equipment
fdisk-l # #查看真实存在的设备
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/91/1F/wKiom1j0NIyxBCrZAACrki99Tik375.png "title=" Screenshot from 2017-04-16 22-07-43.png "alt=" Wkiom1j0niyxbcrzaacrki99tik375.png "/> cat/proc/partitions # #系统能够识别的设备
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/91/1E/wKioL1j0NOaRhVpeAAB_dABNXgU161.png "title=" Screenshot from 2017-04-16 22-08-35.png "alt=" Wkiol1j0noarhvpeaab_dabnxgu161.png "/>
blkid # #系统能够挂载使用的设备id 650) this.width=650; "Src=" Https://s5.51cto.com/wyfs02/M02/91/1F/wKiom1j0NReTgAom Aaehr9xfvcc089.png "title=" screenshot from 2017-04-16 22-09-23.png "alt=" Wkiom1j0nretgaomaaehr9xfvcc089.png "/>
DF # #查看设备被系统使用的情况
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/91/1E/wKioL1j0NXCSXUuYAADXQT1BlyE302.png "title=" Screenshot from 2017-04-16 22-09-32.png "alt=" Wkiol1j0nxcsxuuyaadxqt1blye302.png "/>
Second, the use of equipment
1. Mounting of the device
Mount Device mount point
Mount/dev/sdb1/mnt #把系统中第二块硬盘的第一个分区挂载到 the/mnt directory
2. Uninstalling the device
Umount Equipment | mount point
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/91/1E/wKioL1j0Nl-DofrbAACgImNfTuQ867.png "title=" Screenshot from 2017-04-16 22-03-08.png "alt=" wkiol1j0nl-dofrbaacgimnftuq867.png "/> * * * * *
If a situation arises:
[Email protected]]# UMOUNT/DEV/SDB1
Umount:/home/kiosk/desktop/photo:target is busy.
(In some cases userful 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
Third, soft and hard links
Ls-l # #查看文件节点号
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/91/20/wKiom1j0OGfRwwTDAABAt7ghaNI977.png "title=" Screenshot from 2017-04-16 22-10-23.png "alt=" Wkiom1j0ogfrwwtdaabat7ghani977.png "/>
Ln-s/file/file # #软连接
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/91/20/wKiom1j0OJuBOlyGAACl8YLgjGQ416.png "title=" Screenshot from 2017-04-16 22-17-01.png "alt=" Wkiom1j0ojubolygaacl8ylgjgq416.png "/>
Ln/file/file # #硬链接
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/91/1F/wKioL1j0OMWQPsugAAA8u3yaZJk911.png "title=" Screenshot from 2017-04-16 22-13-20.png "alt=" Wkiol1j0omwqpsugaaa8u3yazjk911.png "/>
Iv. 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 Fast Equipment
s socket
L Link
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/91/20/wKioL1j0OlXA3qKcAAAZPoU-cAo344.png "style=" float : none; "title=" screenshot from 2017-04-17 10-27-31.png "alt=" Wkiol1j0olxa3qkcaaazpou-cao344.png "/>
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/91/20/wKioL1j0OlaAOt0SAAA3lw2zx1E332.png "style=" float : none; "title=" screenshot from 2017-04-17 10-38-20.png "alt=" Wkiol1j0olaaot0saaa3lw2zx1e332.png "/>
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/91/21/wKiom1j0OlaC89f1AABxLRwnnYs962.png "style=" float : none; "title=" screenshot from 2017-04-17 10-40-43.png "alt=" Wkiom1j0olac89f1aabxlrwnnys962.png "/>
DD If=/dev/zero of=/mnt/file1 bs=1024 count=100
DD If=/dev/zero of=/mnt/file2 bs=1024 count=200
DD If=/dev/zero of=/mnt/file3 bs=1024 count=300
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/91/20/wKioL1j0OszxvqF3AABzAoHtMqM506.png "title=" Screenshot from 2017-04-17 10-43-39.png "alt=" Wkiol1j0oszxvqf3aabzaohtmqm506.png "/>
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/91/21/wKiom1j0OuPzvwscAABDSzH140c275.png "title=" Screenshot from 2017-04-17 10-44-45.png "alt=" Wkiom1j0oupzvwscaabdszh140c275.png "/>
Meng New Linux Learning Road (13) access to devices in--linux