]> git.pld-linux.org Git - projects/rc-scripts.git/blame - doc/consoletype.1
- more clear explanation of HOSTNAME and NISDOMAIN
[projects/rc-scripts.git] / doc / consoletype.1
CommitLineData
458f14b7
AM
1.TH CONSOLETYPE 1 "Red Hat Software" "RHS" \" -*- nroff -*-
2.SH NAME
3.B consoletype
4\- print type of the console connected to standard input
5.SH SYNOPSIS
6.B consoletype
7.SH DESCRIPTION
8.B consoletype
9prints the type of console connected to standard input. It prints
10.I vt
11if console is a virtual terminal (/dev/tty* or /dev/console device if not on
12a serial console),
13.I serial
14if standard input is a serial console (/dev/console or /dev/ttyS*) and
15.I pty
16if standard input is a pseudo terminal.
17.SH RETURN VALUE
18.B consoletype
19returns
20.TP
21.I 0
22if on virtual terminal
23.TP
24.I 1
25if on serial console
26.TP
27.I 2
28if on a pseudo terminal.
This page took 0.188464 seconds and 4 git commands to generate.