In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what is the / dev directory in the Linux system. It is very detailed and has certain reference value. Friends who are interested must read it!
Friends who have come into contact with Linux systems know that everything in Linux is a file, and all devices are in the form of files in the dev directory, so the / dev directory is very important.
Dev is an acronym for device. The / dev directory is very important to all users. Because all the external devices used in Linux systems are included in this directory. But here is not the external device driver, which is different from the windows,dos operating system. It is actually a port to access these external devices. We can easily access these external devices, and there is no difference between accessing a file or a directory.
Linux follows the style of Unix, recognizing all devices as a file.
With regard to some special equipment, I have summed up some:
/ dev/null and / dev/zero: http://www.51testing.com/index.php?uid-225738-action-viewspace-itemid-235339
/ dev/tty, / dev/console, / dev/pty, / dev/pts, etc.: http://www.51testing.com/index.php?uid-225738-action-viewspace-itemid-212419
There are two types of device files: block device files (b) and character device files (c)
Device files are generally stored in the / dev directory, and common device files are described as follows:
/ dev/hd [amurt]: IDE device
/ dev/sd [amurz]: 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
(PS: random number device, I will write another blog to summarize later)
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 obtains the newly created devices by monitoring and detecting sysfs.
The above is all the contents of the article "what is the / dev directory in the Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.