What is the dev directory in linux

WBOY
Release: 2022-05-09 12:01:24
Original
8173 people have browsed it

In Linux, the dev directory is a directory used to store hardware device information. dev is the English abbreviation of device. You can directly access the hardware through this directory; the external device driver is not placed in this directory. It is a port to access these external devices, which can conveniently access these external devices.

What is the dev directory in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What is the dev directory in Linux

/dev: A directory under the Linux operating system, used to store hardware device information. The hardware can be directly accessed through the directory under it

Under Linux, the /dev directory is very important, and various devices are under it. Here is a brief summary:

dev is the English abbreviation of device. The /dev directory is very important to all users. Because this directory contains all external devices used in Linux systems. But here is not the driver for the external device, which is different from the windows and dos operating systems. It is actually a port to access these external devices. We can access these external devices very conveniently, and there is no difference from accessing a file or a directory.

Linux follows the Unix style and recognizes all devices as one file.

Device files are divided into two types: block device files (b) and character device files (c)

Device files are generally stored in the /dev directory. Common device files are explained as follows:

  • /dev/hd[a-t]:IDE device

  • /dev/sd[a-z]:SCSI device

  • /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: Infinite data receiving device, equivalent to a black hole

  • /dev/zero: Infinite zero resources

  • /dev /tty[0-63]: Virtual terminal

  • /dev/ttyS[0-3]: Serial port

  • /dev/lp[ 0-3]:Parallel port

  •  /dev/console: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 device

  •  /dev/urandom: Random number device

Related recommendations: "

Linux Video Tutorial"

The above is the detailed content of What is the dev directory in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template