tty 命令詳解


打印連接到標準輸入的終端文件名。

若標準輸入不是終端, 打印 not a tty。

另請參閱: bash     vim     tty 文檔編製

基本用法     詳細用法

root:~# tty
/dev/pts/0
root:~#
			

基本語法

tty [OPTION]...
			

選項參數

參數 EN 解釋 中文翻譯 備注
-s, --silent, --quiet print nothing, only return an exit status 什麼都不打印,僅返迴退齣狀態
Exit status 0 if standard input is a terminal 退齣狀態 0 若標準輸入是終端
1 if standard input is a non-terminal file 1 若標準輸入是非終端文件
2 if given incorrect arguments 2 若給定不正確自變量
3 if a write error occurs 3 若發生寫入錯誤
--help display this help and exit 顯示此幫助並退齣
--version output version information and exit 輸齣版本信息並退齣

基本用法

功能 命令 文字解釋 示例 示例解釋
幫助 tty --help 展示幫助信息
版本 tty --version 展示版本信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。