consoletype(1) redhat man page | unix.com

Man Page: consoletype

Operating Environment: redhat

Section: 1

CONSOLETYPE(1)						      General Commands Manual						    CONSOLETYPE(1)

NAME
consoletype - print type of the console connected to standard input
SYNOPSIS
consoletype
DESCRIPTION
consoletype prints the type of console connected to standard input. It prints vt if console is a virtual terminal (/dev/tty* or /dev/con- sole 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 VALUE
consoletype returns 0 if on virtual terminal 1 if on serial console 2 if on a pseudo terminal.
RH
Red Hat, Inc CONSOLETYPE(1)
Related Man Pages
cvc(7d) - opensolaris
dc(7) - osf1
iscc(7) - osf1
scc(7) - osf1
conscontrol(8) - freebsd
Similar Topics in the Unix Linux Community
How to capture ^x,^y via bash script?
Retrieving previous command in a script
Docker learning Phase-I
Shopt -s histappend
Issue with events occuring in DST window