- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
You must log in or register to comment.
I used to do
sudo !!
, but then I’ve started learning the shortcuts of my shell a bit more -Ctrl+A
jumps to the beginning of the line, which, technically speaking, is a saving of 1 (!) keystroke, compared toShift+1+1
.This has also led to discover that emacs is actually much more useful compared to vim as it uses the same shortcuts.
If you already submitted the command, you’ll have to hit
Up
first to have a line to jump to the beginning of, though, so it’ll be the same number of keystrokes either way.I do the same thing you do, just with vi-mode keystrokes (
up
, thenesc
-I
).
Why does sudo !! never work for me?
Username is not in the sudoers file. This incident will be reported