So you are happily working in your shell issuing commands with merry abandon. At some point you typing in a long command, but find yourself in the wrong directory. Do you hit CTRL-c
, then change directory for then to type in the entire command again?
Enter kill and yank
CTRL-a and CTRL-e
First some basics, CTRL-a
will move the cursor to the start of the command line while CTRL-e
will move the cursor ... [continue reading]