Administrating
-
8. Getting Admin Power
Last How to Get the Admin Super-Powers.
To Login as SuperUser:
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Then to Logout:exit
To Protect your System from the potential Damage of an Hazardous Crazy Command Execution the Logout should be executed every Time your Setup is Achieved!
Finally, to Execute a Single Command as SuperUser:sudo su -c '[myCommand]'
Or:
sudo [myCommand]
For Example to Edit the Repository Source file with nano CLI Editor:
sudo nano /etc/apt/sources.list
Ctrl+x to Save Changes and/or Quit ;)
Congratulations, you are now fully Initiated to the awesome Elementary OS Command Line Shell. ;)
Contents