Access to devices in Linux
1. Equipment identification
/DEV/XDXN Hard Drive Device/dev/sda1
/dev/cdrom
/dev/mapper/* Virtual Appliance
2. Use of the device
Device Discovery
Fdisk-l viewing real-world devices
Devices that the Cat/proc/partitions system can identify
Blkid system can be mounted using the device
Df-h (h) To see how the device is being used by the system
Use of equipment
①. Mounting of the device
Mount Device mount point
MOUNT/DEV/SDB1/MNT mount the first partition of the second hard drive on the system to the/MNT
②. Uninstalling the device
Umount Equipment | Mount point
if the following conditions occur:
umount:/home/kiosk/desktop/photo:target is busy.
(In some cases useful info about processes, use the device are found by lsof (8) or fuser (1))
Solution:
FUSER-KVM Equipment | Mount Point-K kill,-V show details-m scan device
3. soft and hard link differences must remember
in a storage device, a node points to a storage block, and the presence of a node is similar to the existence of a directory.
A soft link refers to a node of a device that points to another device's node to access a storage block when two different storage visits are exchanged .
A hard link is a node of a device that points directly to another block of storage
Ln-i View File Node number
Ln-s/file/file1 Soft Link
Ln/file/file1 Hard Links
3. File Search
1. Locate filename searches the file database for filename information 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
This article is from the "12147236" blog, please be sure to keep this source http://12157236.blog.51cto.com/12147236/1866123
Linux Rookie introduction device related information