Showing posts with label linux su command. Show all posts
Showing posts with label linux su command. Show all posts

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


Running Multiple Linux Commands at the Command Line Prompt - Linux Training Quick Tips For Commands



can save a lot of time by running multiple Linux commands at once, so you type in the same line, and separating them from the "space bar, semicolon, space," as you will see in the examples below the command.

output of each command appears on a separate line.

output of each command appears on a separate line.

...

For example, when you run the cd command, speed is likely to change the look and show the new current directory or a new full directory path, but there is no output for this command.

Examples of running multiple Linux commands on one line

A change in the home directory, Linux users are currently logged in as the first command below, and then run the command pwd to see the "path to working directory" for your current directory.

    $ cd ~; zap

In most Linux distributions, your home will put the directory / home / username , where username is the name users who are currently logged in as.

However, if you are logged in as root user, what is the name of Linux administrative user, your home will be / root.

If you work at the command prompt from the Linux desktop as the root user, run the following command to "log off" and work as a "regular" (non-root) users to see their current full directory path.

    $ output; zap

If you use Red Hat, Fedora, SuSE, Debain and many other Linux distributions, but not Ubuntu or variations of Ubuntu, like Kubuntu or Edubuntu, and then run the following command su (with a dash of options) to start work at the command line prompt as root user.

Run "su -" (without the quotes), then you will need to enter the root user password and press Enter. This command must be run with no other commands in the same row.

the right character in your command line prompt, probably changed from $ to # specify the work as the root user - or changed from> to # if you use SuSE, openSUSE or any Linux distribution.