15+ Command-Line Hot Keys You Didn’t Know About
1 min readMay 13, 2022
- Ctrl + R = search your command history
- Ctrl + W = deletes a single word
- Ctrl + U = deletes from the cursor to the beginning of the line
- Ctrl + K = deletes from the cursor to the end of the line
- Ctrl + A = sends the cursor to the beginning of the line
- Ctrl + E = sends the cursor to the end of the line
- Ctrl + L = clears the terminal
- Ctrl + D = closes the terminal
- Ctrl + F = moves the cursor forward one character
- Ctrl + B = moves the cursor background one character
- Alt + F = moves the cursor forward one word
- Alt + B = moves the cursor backward one word
- Alt + T = switches two words next to each other
- Alt + U = changes the characters of the word next to the cursor to lowercase
- ALT + B = changes the characters of the word next to the cursor to uppercase
- Ctrl + S = stops all the output to the screen
- Ctrl + Q = resumes the output after stopping with Ctrl + S
- Ctrl + XX = move between the beginning of the line and the current position of the cursor
- Ctrl + _ = undo your last keypress
Happy coding!