Created
August 27, 2018 03:53
-
-
Save metallurgical/233e4e4b70d4b610244414096e1aadb0 to your computer and use it in GitHub Desktop.
[Terminal - Command] Terminal(Bash) command #Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic moves | |
============== | |
1. Move back one character. Ctrl + b | |
2. Move forward one character. Ctrl + f | |
3. Delete current character. Ctrl + d | |
4. Delete previous character. Backspace | |
5. Undo. Ctrl + - | |
Moving faster | |
============== | |
1. Move to the start of line. Ctrl + a | |
2. Move to the end of line. Ctrl + e | |
3. Move forward a word. Meta + f (a word contains alphabets and digits, no symbols) | |
4. Move backward a word. Meta + b | |
5. Clear the screen. Ctrl + l | |
Search the command history | |
=================== | |
1. Search as you type. Ctrl + r and type the search term; Repeat Ctrl + r to loop through results. | |
2. Search the last remembered search term. Ctrl + r twice. | |
3. End the search at current history entry. Ctrl + j | |
4. Cancel the search and restore original line. Ctrl + g | |
http://teohm.com/blog/shortcuts-to-move-faster-in-bash-command-line/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment