Linux Commands Training Quick Tips – Using the Sudo Command – Examples – Ubuntu

0
15

Regular Ubuntu Linux Users and the (Lack of Use of the) root User

When you install Ubuntu Linux, you create a user, which is the "first" user and you can also create more users if you need to. When you create the "first" user, you assign this user a password – and this one is very important!

It is required to log in to the desktop (at the Linux GUI login prompt) as the "regular" (non-root) user – and this password is also required to be able to do the equivalent of logging in as the root user – when you're working at the Linux prompt a terminal emulation window on the desktop.

By default, the root use is not "enabled" (not available) in Ubuntu and so you can not log in as this user – which is an innovative thing – as it stops anyone from logging in to the desktop as this user – which should never be done!

Example of Running the Linux sudo Command – To Start Working as the root User

You type in: sudo -i and then press Enter to change from working as a "regular" user to working as (the equivalent of) the root user in Ubuntu (and variations or derivatives, such as Kubuntu – see more on this further below ).

And then you provide the password of the first user that was created on the system. After running the Linux sudo command, the prompt changes from a dollar sign to a number or hash sign (press Shift 3). To "go back" to working as a "regular", run the exit command by entering the command name and pressing the Enter key.

This Linux version has its own "derivatives" (variations), and many of these end in "ubuntu", such as Kubuntu.

    Linux Commands Training Tips: The "K " in K ubuntu stands for "K DE" – it is the "K" in "K DE", for the K DE desktop.
    The Ubuntu distro uses the GNOME desktop by default and Kubuntu uses the KDE desktop by default.

Ubuntu Linux and it's derivatives are some of the few distributions that require the use of the sudo command with the -i option as shown above – as opposed to using the su command with the – "dash" option and then typing in the password of the root user.

Source

Previous articleLinux Secrets
Next articleWhat Is Joomla?
Building WikiProgramming has been both a personal and professional dream since I was 16. The best way to learn is to teach - and this project allows me to learn while helping others. Its a win win and a way for me to give back. I appreciate any and all support!

Leave a Reply