tty

QNX SDP8.0Utilities ReferenceUtilities

Show filename of terminal connected to stdin (POSIX, toybox)

Syntax:

tty [-s]

Runs on:

QNX OS

Options:

-s
Be silent; output exit code only.

Description:

The tty utility shows the filename of a terminal connected to stdin. If there is no terminal, tty prints not a tty instead and exits with nonzero status.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: