Linux stty command Learning

Source: Internet
Author: User

The linux stty command learns how to use the stty command to modify and display terminal line settings. Sh-# sttyspeed 115200 baud; line = 0; kill = ^ X;-brkint ixany-imaxbel-iexten-echoe echoprtsh-# stty-aspeed 115200 baud; rows 0; columns 0; line = 0; intr = ^ C; quit = ^ \; erase = ^ ?; Kill = ^ X; eof = ^ D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^ Q; stop = ^ S; susp = ^ Z; rprnt = ^ R; werase = ^ W; lnext = ^ V; flush = ^ O; min = 1; time = 1; -parenb-parodd cs8 hupcl-cstopb cread clocal-extract-encoding-brkint ignpar-parmrk-transport-istrip-inlcr-igncr icrnl ixon-ixoff-iuclc ixany-imaxbel-extract-olcuc -ocrnl onlcr-onocr-onlret-ofill-ofdel nl0 cr0 tab0 bs0 Vt0 ff0isig icanon-iexten echo-echoe echok-echonl-noflsh-xcase-tostop echoprtechoctl echoke CTRL + S, used to stop the current shell; CTRL + Q, used to start the current shell; CTRL + Z, used to suspend the current shell; CTRL + C, used to interrupt the currently executed program ;... in this way, we finally know why we typed CTRL + C, CTRL + D, and CTRL + Z in shell to handle the problem. It turns out that when shell is running, it has taken over the processing of these buttons. Sh-# ps pid tty time cmd 409? 00:00:00 init 943? 00:00:00 sh 1213? 00:00:00 sh 4918? 00:00:00 pssh-# kill-2 943 sh-# Here we tested to send SIGINT signal to the current shell. As there is no command or program running in the current shell, it seems that nothing is done. You can also press CTRL + C in shell to see if it is correct. CTRL + C actually sends SIGINT to the current shell, which is equivalent. Problem to be solved: When my terminal type is/dev/console, pressing CTRL + S/CTRL + Q in shell does not work; sh-# tty/dev/console. However, if my terminal type is/dev/pts/6, pressing CTRL + S/CTRL + Q in shell will work; sh-# tty/dev/pts/6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.