Query: consoletype
OS: centos
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CONSOLETYPE(1) General Commands Manual CONSOLETYPE(1)NAMEconsoletype - print type of the console connected to standard inputSYNOPSISconsoletype [stdout] [fg]DESCRIPTIONconsoletype prints the type of console connected to standard input, and checks whether the console connected to standard input is the cur- rent 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 ter- minal.RETURN VALUEconsoletype when passed no arguments returns 0 if on virtual terminal 1 if on serial console 2 if on a pseudo terminal. When passed the stdout argument, consoletype returns 0 in all cases, and prints the console type to stdout. When passed the fg argument, consoletype returns 0 if the console connected to standard input is the current virtual terminal 1 otherwise.RHRed Hat, Inc CONSOLETYPE(1)
Related Man Pages |
---|
cvc(7d) - opensolaris |
conspy(1) - debian |
ports(7) - osf1 |
conscontrol(8) - freebsd |
cvcredir(7d) - linux |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
Tar Command |
CentOS7 restoring file capabilities |
Docker learning Phase-I |
Controlling user input |