Last active
January 31, 2023 08:37
-
-
Save hebertluiz/e318f35853d8acf5f0926ab742ea0910 to your computer and use it in GitHub Desktop.
Bash navigation shortcuts
This file contains 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
List of quick navigation on long comands in the bash terminal | |
Reference: https://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/ | |
Ctrl + a – Go to the start of the command line | |
Ctrl + e – Go to the end of the command line | |
Ctrl + k – Delete from cursor to the end of the command line | |
Ctrl + u – Delete from cursor to the start of the command line | |
Ctrl + w – Delete from cursor to start of word (i.e. delete backwards one word) | |
Ctrl + y – Paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor | |
Ctrl + xx – Move between start of command line and current cursor position (and back again) | |
Alt + b – Move backward one word (or go to start of word the cursor is currently on) | |
Alt + f – Move forward one word (or go to end of word the cursor is currently on) | |
Alt + d – Delete to end of word starting at cursor (whole word if cursor is at the beginning of word) | |
Alt + c – Capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word) | |
Alt + u – Make uppercase from cursor to end of word | |
Alt + l – Make lowercase from cursor to end of word | |
Alt + t – Swap current word with previous | |
Ctrl + f – Move forward one character | |
Ctrl + b – Move backward one character | |
Ctrl + d – Delete character under the cursor | |
Ctrl + h – Delete character before the cursor | |
Ctrl + t – Swap character under cursor with the previous one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool. Thank you