Tty
標準入力となっている端末デバイスのファイル名を表示するUnix系のコマンド
From Wikipedia, the free encyclopedia
ttyとは、標準入力となっている端末デバイス(制御端末、controlling terminal)ファイルのパス名を表示する[1]Unix系のコマンドである。元来ttyとはteletypewriter(テレタイプライター)のことを指す。
tty command on a Void Linux machine | |
| 初版 | 1971年11月3日 |
|---|---|
| 対応OS | Unix and Unix-like |
| プラットフォーム | Cross-platform |
| 種別 | Command |
例えば、SSH などを経由し、Unix98 PTY の擬似端末に接続している状況で tty を実行すると、以下のような表示が返される。
% tty /dev/pts/1