Quick tip: execute again the last command

Here it is a quick tip for all the sudoers out there: if you have just typed your very very very long command string that needs root privileges but you’ve forgotten the sudo before it, type this:
sudo !!

and the last command will be repeated but with sudo (or whatever command you type instead) preposed, so type your password and… let’s go !!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s