TTYTAB.5
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH TTYTAB
- .SH NAME
- ttytab - table of login terminals
- .SH SYNOPSIS
- .B /etc/ttytab
- .SH DESCRIPTION
- .de SP
- .if t .sp 0.4
- .if n .sp
- ..
- The
- .B ttytab
- file lists all the terminal devices that one can login on. It is a simple
- text file that contains lines of the form:
- .PP
- .RS
- .ft I
- name type "getty" "init"
- .ft R
- .RE
- .PP
- The
- .I name
- and
- .I type
- fields are simple words,
- .I name
- is the name of the terminal device with
- .B /dev
- stripped off, and
- .I type
- tells the type of terminal to initialize the
- .B TERM
- environment variable.
- .PP
- The
- .I getty
- and
- .I init
- fields may name commands that are run to allow one to login on the line, or
- to initialize the line. Both these fields may be more than one word if
- the whole field is enclosed in double quotes.
- .I Getty
- is usually simply the word
- .BR getty ,
- the command that prints a system identification banner and allows on to type
- a name to log in.
- .I Init
- is usually an
- .B stty
- command to set the baud rate and parity of a serial line.
- .PP
- The
- .I init
- field may be omitted to indicate that no initialization is necessary, and the
- .I getty
- field may be left out to not start a login process. Terminals should not be
- left out, because their place in the
- .B ttytab
- file determines their slot number as returned by
- .BR ttyslot (3).
- .PP
- Comments (introduced by #) and empty lines are ignored.
- .SH EXAMPLE
- A
- .B ttytab
- for the console, two serial lines, and a pseudo tty entry:
- .PP
- .RS
- .nf
- .ta +12 +12 +12
- console minix getty
- tty00 vt100 getty "stty 9600"
- tty01 dialup getty "stty 38400"
- ttyp0 network
- .fi
- .RE
- .SH ENVIRONMENT
- .TP 15n
- .B TERM
- Terminal type
- .SH NOTES
- It is customary to set the type to
- .B dialup
- for a dialin line. One can check for that name in one's
- .BR .profile .
- .SH "SEE ALSO"
- .BR gettyent (3),
- .BR ttyslot (3),
- .BR init (8).
- .SH AUTHOR
- Kees J. Bot (kjb@cs.vu.nl)