I disagree. I think typing one more command "sudo !!" is much easier and straight-forward than doing
1. Ctrl+p. Go to the previous line in bash history.
2. Ctrl+a. Go to the beginning of the new line.
3. Type "sudo ". While you're typing your whole commandline shifts around as well.
The latter mixes history commands, navigation commands and also modifies a previous command instead of just typing a new 7-letter command. It's also more in terms of keystrokes (though just barely).
You know writing out their function does not make them longer. ;) I agree with the parent because my left pinky is always on capsLock (my ctrl; I swapped caps with ctrl) so a ctrol ap is far easier than to go to shift + 1 twice(to type !). Again, this can be different in other keyboards/setups.
1. Ctrl+p. Go to the previous line in bash history.
2. Ctrl+a. Go to the beginning of the new line.
3. Type "sudo ". While you're typing your whole commandline shifts around as well.
The latter mixes history commands, navigation commands and also modifies a previous command instead of just typing a new 7-letter command. It's also more in terms of keystrokes (though just barely).