dedicated tty lines

phil at sequent.UUCP phil at sequent.UUCP
Sat Feb 18 13:43:28 AEST 1984


> The easiest way to have a dedicated tty line is this:
> 	mknod /dev/printer c 22 1
> 	chmod a=w /dev/printer
> 	mknod /dev/tty01 c 22 1
> 

Having more than one name that points to the same device is not
a particularly good idea.  It is a much better practice to make
a hard link to the two or use "mv".  i.e.: 

 	mknod /dev/tty01 22 1
 	ln /dev/tty01 /dev/printer
 	chmod a=w /dev/printer

How many people know why this is better?
-- 

	Phil Hochstetler
	Sequent Computer Systems
	...!sequent!phil



More information about the Comp.unix mailing list