Showing posts with label sudo. Show all posts
Showing posts with label sudo. Show all posts

Friday, June 17, 2011

4 Tricks with sudo


I think that sudo is become a wide used command with Ubuntu, where you don’t even have a root password, before that probably it was used only in some data-centers to restrict access to some commands.
sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.
In this article I will show some uses a little less common for this command, for a general description of the command you could read the page about sudo on wikipedia


1)

sudo !!
you wanted to give a command as root but you forgot to use sudo ? Don’t worry with this command you’ll use the history combined with sudo, the argument !! has the same meaning that !-1 , so this command runs your last command as root.
Obviously this could be used also as