Linux/dev Directory detailed

Source: Internet
Author: User

Under Linux, the/dev directory is important and the various devices are below. Here's a brief summary:

DEV is the acronym for Devices. /dev This directory is important to all users. Because this directory contains all the external devices used in the Linux system. But this is not the driver for the external device, which is not the same as the Windows, DOS operating system. It is actually a port that accesses these external devices. We can easily access these external devices, and access a file without any difference in a directory.

Linux inherits the Unix style, recognizing all devices as a file.

There are two types of device files: block device file (b) and character device file (c)

The device files are generally stored in the/dev directory, and the common device files are described as follows:

/dev/hd[a-t]:ide Equipment

/DEV/SD[A-Z]:SCSI Equipment

/DEV/FD[0-7]: Standard floppy drive

/DEV/MD[0-31]: Soft RAID device

/DEV/LOOP[0-7]: Local loopback device

/DEV/RAM[0-15]: Memory

/dev/null: Unlimited data reception device, equivalent to black hole

/dev/zero: Unlimited 0 Resources

/DEV/TTY[0-63]: Virtual terminal

/DEV/TTYS[0-3]: Serial port

/DEV/LP[0-3]: the same port

/dev/console: Control Console

/dev/fb[0-31]:framebuffer

/dev/cdrom =/dev/hdc

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

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

/dev/random: Random number devices

/dev/urandom: Random number devices

(PS: Random number device, I will write a blog after the summary)

How are the nodes in the/dev directory created?

DEVF or Udev will automatically create it for you.

Kobject is the foundation of the Sysfs file system, and Udev acquires newly created devices by monitoring and detecting SYSFS.

Linux/dev Directory detailed

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.