Tty

標準入力となっている端末デバイスのファイル名を表示するUnix系のコマンド From Wikipedia, the free encyclopedia

ttyとは、標準入力となっている端末デバイス(制御端末、controlling terminal)ファイルのパス名を表示する[1]Unix系コマンドである。元来ttyとはteletypewriter(テレタイプライター)のことを指す。

初版 1971年11月3日 (54年前) (1971-11-03)
種別 Command
概要 初版, 対応OS ...
tty
tty command on a Void Linux machine
初版 1971年11月3日 (54年前) (1971-11-03)
対応OS Unix and Unix-like
プラットフォーム Cross-platform
種別 Command
テンプレートを表示
閉じる

例えば、SSH などを経由し、Unix98 PTY の擬似端末に接続している状況で tty を実行すると、以下のような表示が返される。

% tty
/dev/pts/1

脚注

関連項目

外部リンク

Related Articles

Wikiwand AI