SOMECLEAN
ENCORE1
UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
ENCORE5
ENCORE
BOX
COMMAND
GO
mknod
SYNTAX
/etc/mknod name c | b major minor
FUNCTION
mknod makes a directory entry and a
corresponding i-node for a special file.
OPTIONS
-c - If the special file is character/serial type.
-b - If the special file is block/parallel type.
NOTE: name - is the special file name; major and minor
are device numbers and are specific to each
system. They have to come from the system
source file conf.c.
Let us use the mknod command to make a special file
/dev/tty07 which is character-special and has a major
device number of 0 and a minor device number of 7.
So please enter: mknod /dev/tty07 c 0 7
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type mknod /dev/tty07 c 0 7
Please type mknod /dev/tty07 c 0 7
I guess I must type this for you:
$PROMPT$
FORGET1
mknod /dev/tty07 c 0 7
Observe the result on the terminal!
$PROMPT$
Let us verify that indeed such a file was
created by typing: ls -l /dev/tty07
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ls -l /dev/tty07
Please type ls -l /dev/tty07
I guess I must type this for you:
$PROMPT$
FORGET2
ls -l /dev/tty07
Observe the result on the terminal!
crw-r--r-- 1 root 0, 7 /dev/tty07
$PROMPT$