CONSOLETYPESection: User Commands (1)
Updated: Red Hat, Inc
Index Return to Main Contents
NAMEconsoletype - print type of the console connected to standard input
SYNOPSISconsoletype [stdout] [fg]
DESCRIPTIONconsoletype prints the type of console connected to standard input, and checks whether the console connected to standard input is the current foreground virtual console. With no arguments, it prints vt if console is a virtual terminal (/dev/tty* or /dev/console device if not on a serial console), serial if standard input is a serial console (/dev/console or /dev/ttyS*) and pty if standard input is a pseudo terminal.
RETURN VALUEconsoletype when passed no arguments returns
This document was created by man2html, using the manual pages.
Time: 05:29:02 GMT, December 24, 2015