Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Keyboard shortcuts for Unix stty

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

In the actual production environment, unix hosts often need to use a lot of command line terminals because of a large amount of data analysis or other reasons, and the shortcut keys used in the stty of the interface of many services are the same as traditional ones, such as mysql. So if you want to improve your usual efficiency, you must use the shortcut keys under stty. Here is a brief statement:

[root@localhost] # stty-a # prints all current configurations speed 38400 baud; rows 38; columns 134; line = 0 intr = ^ C; quit = ^\; erase = ^?; kill = ^ U; eof = ^ D; eol =; eol2 =; swtch =; start = ^ Q; stop = ^ Ssusp = ^ Z; rprnt = ^ R; werase = ^ W; lnext = ^ V; flush = ^ O; min = 1; time = 0 -parenb-parodd cs8-hupcl-cstopb cread-clocal-crtscts-cdtrdsr-ignbrk-brkint-ignpar-parmrk-inpck-istrip-inlcr-igncr icrnl ixon-ixoff-iuclc-ixany-imaxbel-iutf8opost-olcuc-ocrnl onlcr-onocr-onlret-ofill-ofdel nl0 cr0 tab0 bs0 vt0 ff0isig icanon iexten echo echoe echok-echonl-noflsh-xcase-tostop-echoprt echoctl echoke

"^" means [ctrl]. People who have used the nano editor will generally know that there are a few commonly used variables here:

Intr: send interrupt signal, mostly used to interrupt a program erase: delete characters backward kill: under the command terminal, delete the entire line of characters eof:EOF input Terminator susp: pause the current command flush: refresh a line prompt and of course "^ l" is clear, which means clearing the screen

The services on Unix basically follow the system standards, so these shortcuts are universal

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report