iterm 2 Shortcuts

hot key Role Description
command + f Search & Find , if entering the search, press the tab key, it will automatically help iTerm selected search keywords, and automatically copied to the clipboard to help us in. If the input is shift + tab, you will find everything to the left automatically selected and copied. Press esc to exit the search.
command + r
or ctrl + l
Clear the screen, and only switch to a new screen, not the same as clear creates an empty screen
command + k clear, clear the screen
command + d Vertical Split Screen
command + shift + d Horizontal split screen
command + ; View history commands
command + shift + h View Clipboard history, command entered will automatically list
command + number window tab tag toggling
command + option + ←/→
或 command + [ / ]
Switch Screen
   
ctrl + x The first time, move the cursor to the first line; time and again, back to the original position
ctrl + a To the beginning of the line (Ahead of line)
ctrl + e The end of the line (End of line)
ctrl + f/b Forward and backward (corresponding to the left and right arrow keys)
ctrl + u Clear the current line (no matter what position the cursor)
ctrl + d Delete the current cursor position character
ctrl + h Delete the previous cursor character
ctrl + w Delete the previous cursor word
ctrl + k Delete the current cursor position to the end of the text of all the characters
ctrl + t Exchange positions of the current cursor position and the previous character of the character
   
ctrl + c
or ctrl + j
or ctrl + o
Cancel the current command line input (interrupt handling). Re-start a new line.
ctrl + y 粘贴之前(ctrl +u/k/w)删除的内容
ctrl + p
或 !!
上一条命令。调出命令历史中的前一条(Previous)命令,相当于通常的上箭头
ctrl + n 下一条命令。调出命令历史中的下一条(Next)命令,相当于通常的上箭头
ctrl + s 冻结终端操作(暂停脚本)
ctrl + q 恢复冻结(继续执行脚本)
ctrl + r 搜索命令历史。根据用户输入查找相关历史命令(reverse-i-search)
ctrl + l
或 command + r
换到新一屏,创建一个空屏
ctrl + i
或 tab
横行制表符,在命令行中补齐指令
双击 选中单词
三击 选中整行
四击 智能选择
   
!word 重复运行最近一条以“word”开头的指令,如!ls 或 !l
!$ 调用上一条指令的最后一个参数作为当前指令对象,如,假设上一条指令为: ls abc.txt bbc.txt 那么, vi !$ 相当于: vi bbc.txt
!number 调用执行指定编号的历史记录指令,如!2, !11

 




Guess you like

Origin www.cnblogs.com/ampl/p/11325591.html