Linux Rookie introduction device related information

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.