Until now, I've used almost 100% of the arrow keys when typing commands. I tried to summarize the commands to proceed with the command while keeping the home position without using the arrow keys.
ctrl + b
: Back one character
ctrl + f
: Advance one character
ctrl + a
ctrl + a
esc + b
: The beginning of the word (with the cursor on it)
esc + f
: The end of the word (with the cursor on it)
Delete word (with cursor)
### ● <Command cut and yank (paste)>
```ctrl + k```: Delete from the cursor position to the end of the sentence
```ctrl + u```: Delete from the cursor position to the beginning of the line
```ctrl + y```: Paste the last deleted content
# Trouble shooting
### ● <Refreshing the screen>
```ctrl + l```Or```$ clear```Erases unnecessary information and cleans the screen once
# Complementary function
### ● <Complementary function of bash>
・ ``` Tab key` `: The Tab key at the time of ec complements echo.
→ You can save the trouble of typing all the commands
# Command history
### ● <History operation>
```ctrl + p```Or```↑```: Previous command
(P is previous)
```ctrl + n```Or```⇩```: One command after
(N is next)
### ● <Search for commands typed>
```ctrl + r```: Search for commands
Recommended Posts