I'll often find myself writing out long commands in the bash shell – things with many arguments, web addresses, routes, etc and so on. Every so often I will realize I forgot to, say, put my "bundle exec" at the beginning of the command, or misspelled something, or forgot quotes. Or something as simply as putting "cd" instead of "vim".
Thus begins the tedious process of holding the left arrow key until I get back to the beginning of the command.
Is there an any way to jump to the beginning of the line again?
Best Answer
In addition to ^A and ^E, you can do
See the bash manual for commands for moving.