Sinsing analysis of the/dev directory in Linux

Source: Internet
Author: User

Under Linux, the/dev directory is important and the various devices are below. Dev is the abbreviation for device, which means devices. /dev This directory is important for all users, because this directory contains all the external devices used in the Linux system.

But here is not the driver for the external device, which is not the same as windows, it is actually a port to access these external devices. We can easily access these external devices, and access to a file, a directory without any distinction. Of course, Linux inherits the Unix style and considers all devices to be a file. devices can usually be divided into two types: block device file (b) and character device file (c).

Device files are typically in the/dev directory, and the following are common device descriptions:

/DEV/HD[A-T] is an IDE device

/DEV/SD[A-Z] is a SCSI device

/DEV/FD[0-7] is a standard floppy drive

/DEV/MD[0-31] is a soft raid device

/DEV/LOOP[0-7] is a local loopback device

/DEV/RAM[0-15] is a memory device

/dev/null Infinite data receiving device, equivalent to a black hole, can also be understood as a bit bucket

/dev/zero Unlimited 0 Resources

/DEV/TTY[0-63] Virtual terminal

/DEV/TTYS[0-3] Serial Port

/dev/console Console

/DEV/FB[0-31] is framebuffer, and it's about the reality of graphics.

/dev/cdrom =/dev/hdc

/dev/modem =/dev/ttys[0-9]

/dev/random Random number Device

/dev/urandom Random number Device

For devices in the Dev directory, we can use DEVFS or udev or SYSFS related things, which I'll cover in the next blog post.

Sinsing analysis of the/dev directory in Linux

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.