Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

RedHat 9 (Linux i386) - man page for consoletype (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 ter- minal (/dev/tty* or /dev/console device if not on a serial console), serial if standard input is a serial con- sole (/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)


All times are GMT -4. The time now is 06:57 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password