当前位置:网站首页>Solution to page locking caused by xshell accidentally pressing ctrl+s
Solution to page locking caused by xshell accidentally pressing ctrl+s
2022-06-11 22:30:00 【There is no natural school bully. Everything is accumulated】
windows Using more operating environments will lead to a habit , After each edit, I will subconsciously press ctrl+s To preserve (ps: Sometimes the shortcut key will be used subconsciously in the web page state , Then the pop-up prompt page is saved …T_T)
Use Xshell When I accidentally press this shortcut key, I feel very uncomfortable , Because you will find that the terminal is locked . Whatever you do , The terminal interface is unresponsive . At this time, just use ctrl+q You can unlock the terminal . Because I always press this shortcut key subconsciously , So record it .
At the same time, when solving this problem , Also a simple study Xshell Other shortcuts for , Write it below , For reference :
Delete
ctrl + d Deleting the character on the cursor is equivalent to VIM in x perhaps dl
ctrl + h Deleting the character before the cursor position is equivalent to VIM in hx perhaps dh
ctrl + k Deleting all characters after the cursor is equivalent to VIM in d shift+$
ctrl + u Deleting all characters in front of the cursor is equivalent to VIM in d shift+^
ctrl + w Deleting the word before the cursor is equivalent to VIM in db
ctrl + y recovery ctrl+u Characters deleted during last execution
ctrl + ? Undo the previous input
alt + r Undo the previous action
alt + d Delete the last word at the cursor position
Move
ctrl + a Moving the cursor to the beginning of the command line is equivalent to VIM in shift+^
ctrl + e Moving the cursor to the end of the command line is equivalent to VIM in shift+$
ctrl + f Moving the cursor back one character is equivalent to VIM in l
ctrl + b Moving the cursor forward one character is equivalent to VIM in h
ctrl + Direction key left key Move the cursor to the beginning of the previous word
ctrl + Right click the direction key The cursor moves to the end of the next word
ctrl + x Jump between the last cursor character and the current cursor character
alt + f Jump to the end of the word where the cursor is located
Replace
ctrl + t Replace the current character of the cursor with the previous character
alt + t Exchange the word of the current position of the two cursors and the word before the cursor
alt + u Change the word at the current position of the cursor to uppercase
alt + l Change the word at the current position of the cursor to lowercase
alt + c Change the first letter of the word at the current position of the cursor to uppercase
oldstrnewstr Replace the string in the previous command
Historical command editing
ctrl + p Returns the last command character entered
ctrl + r Enter the word search history command
alt + p Enter a character to find a historical command that is close to the character
alt + > Return to the last command executed
Other
ctrl + s Lock the terminal
ctrl + q Unlock terminal
ctrl + l Clear screen is equivalent to command clear
ctrl + c Another line
ctrl + i similar TAB Health and tonic function
ctrl + o Repeat command
alt + Number keys Number of operations
surface 2-1 Browse for command line keystrokes
| Keystrokes | full name | meaning |
|---|---|---|
| Ctrl+F | Character forward | Move one character forward |
| Ctrl+B | Character backward | Move one character back |
| Alt+F | Word forward | Move a word forward |
| Alt+B | Word backward | Move a word back |
| Ctrl+A | Clothes | To the beginning of the current line |
| Ctrl+E | At the end of the line | To the end of the line |
| Ctrl+L | Clear the screen | Clear the screen , And leave a line at the top of the screen |
surface 2-2 Edit command line keystrokes
| Keystrokes | full name | meaning |
|---|---|---|
| Ctrl+D | Delete current content | Delete the current character |
| Backspace | Delete previous content | Delete the previous character |
| Ctrl+T | Swap character | Swap the position of the current character and the previous character |
| Alt+U | Capital words | Capitalize the current word |
| Alt+L | Lowercase words | Change the current word to lowercase |
| Alt+C | title case | Capitalize the first letter of the current word |
| Ctrl+V | Insert special characters | Add special characters . for example , Press Ctrl+V+Tab You can add a Tab character |
surface 2-3 Keystrokes for cutting and pasting text on the command line
Keystrokes full name meaning
Ctrl+K Cut the end of the line Cut the text to the end of the line
Ctrl+U Cut the beginning of the line Cut the text to the beginning of the line
Ctrl+W Cut the first word Cut a word in front of the cursor
Alt+D Cut the next word Cut a word after the cursor
Ctrl+Y Paste recent text Paste recently cut text
Alt+Y Paste earlier text Cycle back to the previously cut text and paste it
Ctrl+C Delete entire line Delete a whole line
surface 2-4 Key combinations for text completion
Composite key effect
Alt+~ Use the user name to complete the text
Alt+$ Complete the text with variables
[email protected] Supplement the full text with the host name
Alt+! Use the command name ( By alias 、 Reserved words 、shell function 、shell Check the order of built-in commands and file names in turn ) Complete text . let me put it another way , Complete the key sequence with the previously run command
Ctrl+X+/ List possible completion user name text
Ctrl+X+$ List possible completion environment variables
[email protected] List possible completion host names
Ctrl+X+! List possible completion command names
surface 2-5 Use command history keystrokes
key Function name describe
Direction key (↑ or ↓) Stepping Press the up and down arrows to step through each command line in the history list , To the desired position (Ctrl+P and Ctrl+N Each has the same function )
Ctrl+R Reverse progressive search Press these keys , Enter a search string to reverse the search . After entering this string , The matching command line appears , You can run or edit it
Ctrl+S Forward progressive search Similar to the previous function , It's just a forward search
Alt+P Reverse search Press these keys , Enter a string to reverse search . Enter a string and press Enter Key to see the most recently used command containing the string
Alt+N Forward search Similar to the previous function , It's just a forward search
Alt+< The beginning of the history list To the first item in the history list
Alt+> At the end of the history list To the last item in the history list
边栏推荐
猜你喜欢

Explain asynchronous tasks in detail: the task of function calculation triggers de duplication

Players must read starfish NFT advanced introduction

Basic operation of graph (C language)

inner join执行计划变了

学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况

二叉树的基本操作与题型总结

C language to achieve eight sorts (2)

leetcode 257. Binary Tree Paths 二叉树的所有路径(简单)

How to view computer graphics card information in win11

360 online enterprise security cloud is open to small, medium and micro enterprises for free
随机推荐
3.3 测试模块的命名规则
Optimization of quick sort
67. binary sum
論文閱讀《Dense Visual SLAM for RGB-D Cameras》
Static PVC with CEPH CSI
剑指offer数组题型总结篇
Point cloud read / write (2): read / write TXT point cloud (space separated | comma separated)
Study notes of mattlotlib and Tkinter (I)
习题8-2 在数组中查找指定元素 (15 分)
Unity3d getlaunchintintforpackage getting package returned null
练习8-8 移动字母 (10 分)
SequenceList顺序表的实现
习题6-6 使用函数输出一个整数的逆序数 (20 分)
一款开源的Markdown转富文本编辑器的实现原理剖析
3.3 naming rules of test modules
【NodeJs】Electron安装
Tkinter study notes (II)
3.2 naming rules of test classes
习题8-8 判断回文字符串 (20 分)
每日一题-1317. 将整数转换为两个无零整数的和