Is there a BSD equivalent to "!!"?
- by CT
I often find myself issuing a command that I do not have the proper elevated privileges for.
On Ubuntu I could use
sudo !!
This would issue the same command with sudo privlidges. Is there an equivalent on OpenBSD?
Edit: I should have been more specific on what version of OpenBSD. I am using OpenBSD 4.8 where sudo seems to be installed by default. I have already created a user besides root and edited my sudoers file to allow for that user to use sudo.
My question is, is there already a built-in shortcut for the "!!" to use previous command.