Operating System - HP-UX
1754014 Members
7585 Online
108811 Solutions
New Discussion юеВ

Diff between insf,mksf,mknod commands

 
Abubakkar
Frequent Contributor

Diff between insf,mksf,mknod commands

when this commansd used give some example
4 REPLIES 4
Johnson Punniyalingam
Honored Contributor

Re: Diff between insf,mksf,mknod commands

man pages for above insf,mksf,mknod commands
can provide you lot of informations

insf - install special (device) files

mksf - make a special (device) file

(E.g) mksf -C printer -I 2 /dev/printer


mknod() - make directory, special, or ordinary file
Problems are common to all, but attitude makes the difference
Bijeesh
Respected Contributor

Re: Diff between insf,mksf,mknod commands

sarfaraj ahmad
Trusted Contributor

Re: Diff between insf,mksf,mknod commands

Hi,

Using the insf Command
----------------------------------
The insf command creates device files for new devices. It is automatically executed during the boot
process; however, you can also use it later to create additional devices. For example, to create device
files for tape drives, you can use the following command.
insf -C tape
This command does not create device files for existing devices. If you delete device files accidentally,
insf will not recreate the device files at boot time. For creating device files for existing devices, you need
to use the command line option -e. For example, if you accidentally delete the device file for your CDROM,
which is attached to hardware path 0.1.0, use the following command to recreate it.
insf -H 0.1.0 -e
***************************************************************
Using the mksf Command
-------------------------------------
This command is used to create device files if the system already knows the devices. An existing device
is one that already has been assigned an instance number by the system. The mksf command can also
create a directory if needed for the device file. It has some built-in options and file naming conventions;
however, you can override these options using the command line.
************************************************************************
Using the mknod Command
---------------------------------------
The mknod command can be used to create character device files, block device files, or files
representing named pipes. To create character or block device files, you have to specify major and
minor numbers at the command line. To create a character device file for a tape drive with major number
212 and minor number 0x030080, you will use this command.
mknod /dev/rmt/0m c 212 0x030080
To create a block device file, replace "c" with "b" on the command line.
************************************************************

please check man pages for available option to use with these commands.
Hakki Aydin Ucar
Honored Contributor

Re: Diff between insf,mksf,mknod commands

You can use this page as general reference for all OS releases:
http://docs.hp.com/en/hpuxman_pages.html