- 论坛徽章:
- 1
|
举个例子:
#ls -l /dev
brw-rw---- 1 root system 10, 8 Jul 28 15:22 hd1
brw-rw---- 1 root system 10, 9 Oct 07 00:27 hd10opt
brw-rw---- 1 root system 10, 5 Oct 07 00:28 hd2
brw-rw---- 1 root system 10, 7 Jul 28 15:22 hd3
brw-rw---- 1 root system 10, 4 Oct 07 00:26 hd4
brw-rw---- 1 root system 10, 1 Oct 07 00:28 hd5
brw-rw---- 1 root system 10, 2 Jul 28 15:22 hd6
brw-rw---- 1 root system 10, 3 Jul 28 15:22 hd8
brw-rw---- 1 root system 10, 6 Jul 28 15:22 hd9var
......
#man mknod
Commands Reference, Volume 3, i - m
mknod Command
Purpose
Creates a special file.
Syntax
Only executed by root or system group member
mknod Name { b | c } Major Minor
Creates FIFOs (named pipelines)
mknod Name { p }
Examples
To create the special file for a new diskette drive, enter: mknod
/dev/fd2 b 1 2
This creates the /dev/fd2 special file that is a special block file
with the major device number 1 and the minor device number 2. |
|