556
sudo !!
(infosec.pub)
I use Arch btw
Sister communities:
Community rules
Please report posts and comments that break these rules!
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.
You cann save another keystroke on that one by using home/end.