QUOTE(d4n3sh @ Nov 11 2022, 05:26 PM)
CODE
sudo !!
is one I use alot. Every time I go duh! I forgot to sudo.CODE
❯ whoami
user1
❯ sudo !!
❯ sudo whoami
Password:
root
user1
❯ sudo !!
❯ sudo whoami
Password:
root
(double exclamation point) refers to the previous command; the command !! alone on an input line reruns the previous command.