consoletype man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]


       consoletype - print type of the console connected to standard input

       consoletype [stdout] [fg]

       consoletype 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 ter‐

       consoletype 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 vir‐
	      tual terminal

       1      otherwise.

RH				 Red Hat, Inc			CONSOLETYPE(1)

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net