How to be root using sudo

If you want to execute a series of commands with root privilege then it is cumbersome to type sudo before every command. Instead just type sudo -i This will take you to root login with required environment variables. You can continue your work there.
hash@ssl50:~$ sudo -i
[sudo] password for hash:
root@ssl50:~#

For more details check manpage for sudo.

1 comments:

    On August 27, 2009 at 12:33 PM Anonymous said...

    how about 'sudo su'