Linux Su Command Training Example - How to Get to Work As the Linux Root User - Debain Ubuntu



When you are working on a Linux desktop as a "regular" Linux users, many times you have to go to the command line prompt and run the command administrative system.

and run many of these commands, you must run as user named root (aka superuser ).

Linux Commands Training Tips: superuser's name is abbreviated as Su (and you will see how to use the same command name below ).

You are using Linux I command (s - option). On request to change the radio as "ordinary" users to work as the root user

You are using Linux I command (s - option). On request to change the radio as "ordinary" users to work as the root user

...

For security reasons, you should never log into the Linux desktop with the username root. So you have to register as a "regular" user and then you're on the desktop and the steps to "open" Linux "terminal emulation window" go to the command line prompt.

When asked what the "regular" user, you need to run Linux are command "log in" and change from acting as a "non-root" user to act as the root user, so you can izvoditisnažan Linux system administration commands.

Using Linux commands were to work as root superuser

Using Linux commands were to work as root superuser

...

At this point, you're I served as the root user.

Here's how to run Linux are command:

Try all the examples of how to get real, practical experience, training commands.

$ No -

Be sure to use the - (dash) as shown on the right side of the command above. This gives a "root user environment ".

After running the above command, the prompt changes from $ (dollar sign) to # (number sign) indicates that you are doing "as the root user" and not "as a regular user."

Now you can run Linux system administration commands.

Now you can run Linux system administration commands.

...

$ Out

Linux Commands Training Tips: When you run the command, you are done "in the bash shell" (the environment) and when you run the commands (with the hyphen option) to work as root users, you actually open the "subshell" in the "bash shell ".

When you run the command output, you're "out" of the subshell (as root user) to "ordinary" shell!

Ubuntu Linux is a "big" Linux distribution, following distributions "based on" or "derived from" this version - and so the examples above will work nasljedeće distribution as:

Ubuntu , Damn Small Linux, Dreamlinux, Kanotix, Knoppix, Linex, Linspire, Mepis, sidux, Xandros - and more


Recommended Posts :