If you enter su on its own (followed by the root password when prompted), you become root until you press Ctrl+D to log-out. Upon which, you will revert back to the account you were previously in.
However, because you almost never have to enter more than one command as root, and because of the similarities between this, and logging-in as root (remember my warning about this), the next offering is my recommended use of the su command.
|