You can use the arrow keys on keyboard to move around in the command line. Bash also provides convenient keyboard short cuts to navigate effectively. Try them out and see for yourself.
To become a Bash pro user you have to get yourself familiar with the keyboard shortcuts. Once you do, you'll find yourself productive.
| CTRL+b | move backward one character |
| CTRL+f | move forward one character |
| ESC+b | move one word backward |
| ESC+f | move one word forward |
| CTRL+a | move to beginning of line |
| CTRL+e | move to end of line |
| CTRL+p | move to previous line |
| CTRL+n | move to next line |
| ESC+< | move to first line of history list |
| ESC+> | move to last line of history list |
Moving around words using ESC+f and ESC+b are my favourites in this list. Jumping to first and last lines of the history list is also useful.
Recent comments
11 hours 7 min ago
1 day 7 hours ago
1 week 1 day ago
1 week 1 day ago
3 weeks 6 days ago
4 weeks 1 day ago
4 weeks 1 day ago
5 weeks 18 hours ago
5 weeks 20 hours ago
5 weeks 3 days ago