Reply
cmd+Kclear current session
label
New label: command + t Close label: command + w Switch label: command + number command + left and right arrow keys to switch full screen: command + enter Find: command + f
split screen
Vertical split screen: command + d Horizontal split screen: command + shift + d Switch screen: command + option + arrow keys command + [or command +] view history commands: command +; view clipboard history: command + shift + h
Other
清Except the current line: ctrl + u to the beginning of the line: ctrl + a to the end of the line: ctrl + e forward and backward: ctrl + f/b (equivalent to the left and right arrow keys) Previous command: ctrl + p Search command history: ctrl + r Delete the character of the current cursor: ctrl + d Delete the character before the cursor: ctrl + h Delete the word before the cursor: ctrl + w Delete to the end of the text: ctrl + k Exchange the text at the cursor: ctrl + t Clear screen 1: command + r Clear screen 2: What are the useful functions/shortcut keys that ctrl + l comes with ⌘ + numbers to switch back and forth directly in each tab label, namely copy + middle mouse button to paste, this is very useful ⌘ + f The searched content will be automatically Copy ⌘ + d to split the screen horizontally / ⌘ + shift + d to split the screen vertically ⌘ + r = clear, and just change to a new screen, not create an empty screen like clear ctrl + u clear the current line, no matter where the cursor is Press ⌘ +; after entering the first command at any position, the entered commands will be automatically listed. ⌘ + shift + h will list the clipboard history. You can set the global shortcut key in Preferences> keys to call up iterm. This can also be achieved with Alfred
Some commonly used shortcut keys
⌘ + 1/2 Switch back and forth between the left and right tabs. This has been introduced before. ⌘← / ⌘→ To the left/most right of a line of commands, this function is the same as C+a / C+e⌥← / ⌥→ Move forward/backward by word , Quite similar to C+f / C+b, in fact, this function has been predefined in Iterm, ⌥f / ⌥b, it seems that the setting methods are as follows, except for those that can be customized. Forget about the useful combinations C+a / C+e under linux. This can be used almost everywhere. C+p / !! The last command C+k is deleted from the cursor to the end of the command line (originally C+u is deleted To the beginning of the command line, but the entire line is deleted in iterm) C+w A+d Delete from the cursor to the beginning/end of the word C+h C+d Delete the conceited C+y before and after the cursor and paste it after the cursor C+ r Search command history, this is more commonly used
select and copy
iterm2 has 2 useful select-and-copy modes.
- One is to use the mouse, in iterm2, select a path or A certain vocabulary, then iterm2 will be copied automatically.
- the other is no mouse mode,
command+f
, the search mode of iterm2 pops up, enter the first few letters of the content you want to find and copy, and confirm that you find After your own content, entertab
, the search window will automatically change the content and copy it. If the input isshift+tab
, the left side of the search content is automatically selected and copied.
autocomplete
Enter the first few letters, then enter command+
; iterm2 will automatically list the similar commands entered before.
cut history
Enter command+shift+h
, iterm2 will automatically list the clipboard history. If you need to save the clipboard history to disk, set it in Preferences> General> Save copy/paste history to disk
.
Reply
cmd+Kclear current session
label
New label: command + t Close label: command + w Switch label: command + number command + left and right arrow keys to switch full screen: command + enter Find: command + f
split screen
Vertical split screen: command + d Horizontal split screen: command + shift + d Switch screen: command + option + arrow keys command + [Or command +] view history commands: command +; view clipboard history: command + shift + h
other< /h3>
Clear the current line: ctrl + u to the beginning of the line: ctrl + a to the end of the line: ctrl + e forward and backward: ctrl + f/b (equivalent to the left and right arrow keys) Last command: ctrl + p search command history: ctrl + r delete the character of the current cursor: ctrl + d delete the previous one Characters: ctrl + h to delete the word before the cursor: ctrl + w to delete to the end of the text: ctrl + k to exchange the text at the cursor: ctrl + t to clear the screen 1: command + r to clear the screen 2: ctrl + l comes with which is useful The function/shortcut key of ⌘ + number in each tab label to switch directly back and forth, namely copy + middle mouse button to paste, this is very practical ⌘ + f The content you are looking for will be automatically copied ⌘ + d horizontal split screen / ⌘ + shift + d Split the screen vertically ⌘ + r = clear, and just change to a new screen. I don’t want to create an empty screen like clear ctrl + u to clear the current line, no matter where the cursor is at the beginning, press ⌘ +; to automatically list The entered command ⌘ + shift + h will list the clipboard history. You can set the global shortcut key in Preferences> keys to call up iterm. This can also be achieved with Alfred.
Some commonly used shortcut keys
⌘ + 1/2 Switch back and forth between the left and right tabs. This has been introduced before After ⌘← / ⌘→ to the far left/right of a line of commands, this function is the same as C+a / C+e⌥← / ⌥→ Move forward/backward by word, which is equivalent to C+f / C+b, in fact This function has been pre-defined in Iterm, ⌥f / ⌥b, I am used to it. It seems that these setting methods are as follows. Of course, besides these can be customized, don’t forget the easy-to-use combination C+a under Linux. / C+e This can be used almost everywhere C+p / !! The last command C+k is deleted from the cursor to the end of the command line (originally C+u was deleted to the beginning of the command line, but in iterm, the whole is deleted Line) C+w A+d Delete from the cursor to the beginning/end of the word C+h C+d Delete the conceit before and after the cursor C+y After pasting to the cursor C+r Search command history, this is more common
Select and copy
iterm2 has 2 easy-to-use select and copy modes.
- One is to use the mouse, in iterm2, select a path or A certain vocabulary, then iterm2 will be copied automatically.
- the other is no mouse mode,
command+f
, the search mode of iterm2 pops up, enter the first few letters of the content you want to find and copy, and confirm that you find After your own content, enter tab
, the search window will automatically change the content and copy it. If the input is shift+tab
, the left side of the search content is automatically selected and copied.
autocomplete
command+f
, the search mode of iterm2 pops up, enter the first few letters of the content you want to find and copy, and confirm that you find After your own content, enter tab
, the search window will automatically change the content and copy it. If the input is shift+tab
, the left side of the search content is automatically selected and copied. Enter the first few letters, then enter command+
; iterm2 will automatically list the similar commands entered before.
cut history
Enter command+shift+h
, iterm2 will automatically list the clipboard history. If you need to save the clipboard history to disk, set it in Preferences> General> Save copy/paste history to disk
.