stty命令使用一例

來源:互聯網
上載者:User

stty命令使用一例

可以通過stty -a命令來查看所有的終端設定。

[nm_appg~]$stty -a
speed 9600 baud; line = 0;
rows = 41; columns = 132
min = 1; time = 1;
intr = ^C; quit = ^/; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 = <undef>; swtch = <undef>
stop = ^S; start = ^Q; susp = ^Z; dsusp = <undef>
werase = <undef>; lnext = <undef>
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
其中:
eof : 輸入結束
erase : 向後刪除字元,
intr : 中斷當前程式
kill : 刪除整條命令
quit :退出當前程式
start : 啟動螢幕輸出
stop :停止螢幕輸出;
susp : 掛起當前程式。  

修改某個命令的值的格式如下:

[nm_appg~]$stty susp ^Z  這樣就可以將susp的操作指令修改為Ctrl+z

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.