1.

What Is Mknod And It's Usage ?

Answer»

mknod is a command which used CREATE the device file (or) node in Linux file SYSTEM.

In unix or linux we will REPRESENT everything as a file .

syntax: mknod Name { b | c } Major MINOR

Name : name of the device file

{ b | c } : type of device (ex; char or BLOCK device)

Major : Major number of the device file

Minor : Minor number of the device file

ex : $ mknod /dev/rama c 12 5

MKDEV(int major, int minor);

mknod is a command which used create the device file (or) node in Linux file system.

In unix or linux we will represent everything as a file .

syntax: mknod Name { b | c } Major Minor

Name : name of the device file

{ b | c } : type of device (ex; char or block device)

Major : Major number of the device file

Minor : Minor number of the device file

ex : $ mknod /dev/rama c 12 5

MKDEV(int major, int minor);



Discussion

No Comment Found