Linux system text command quick login and exit

Source: Internet
Author: User
Tags account security

Linux is a multi-user operating system, users to use the system, the first must log on to the system, after using the system, must exit the system. When the user logs on to the system, in order to enable the system to recognize itself, must enter the user name and password, after the system verification is correct can enter the system. There are two types of accounts that can be created during system installation:

1,root-Super user account, use this account can do anything in the system.

2, Ordinary users -this account for ordinary users to use, can be limited operation.

The General Linux user is the ordinary users, and the system administrator generally uses the Super user account to complete some system administration work. If you only need to complete some of the tasks that can be done by a regular account, we recommend that you do not use the Superuser account to avoid inadvertent damage to the system.

User login In two steps: The first step, enter the user's login name, the system according to the login name to identify the user; the second step, enter the user's password, the password is the user's own choice of a string, the other users are confidential, is the system used to identify the true and false users in the login keyword.

In a Linux system, the system administrator assigns the user a user name and an initial password when creating a new account for the user. In addition, the Linux system assigns a host name to the computer. The host name is used to identify a stand-alone computer on the network (even if the user's computer is not networked, there should be a host name). The default host name given by the Linux system is: localhost. In the following example, we assume that the user name is "XXQ" and the system host name is "localhost".

First, enter the system (login) 1. Super User Login

The superuser username is root and the password is set when the system is installed. After the system starts successfully, the screen displays the following prompt:

localhost login:

Enter the super user name "root" and type Enter. At this point, the user will see a prompt to enter the password on the screen:

localhost login:root

Password:

At this point, you need to enter a password. When you enter a password, the password is not displayed on the screen. If the user enters the wrong password, they will see the following message on the screen:

Login incorrect.

you need to re-enter this. Once the user has entered the user name and password correctly, they will be able to enter the system legitimately. Screen display:[[email protected] ~] #

This indicates that the user is logged on to the system and is ready to operate. The "#" here is the system prompt for the super user.

2, Normal User login

Normal User Login after setting up a normal user account, you can log in. When you sign in, the user will see a prompt similar to the following on the screen:

localhost login:

Enter the user name "Xxq" and type Enter. At this point, the user will see a prompt to enter the password on the screen:

localhost login:xxq

Password:

at this point, you need to enter a password. When you enter a password, the password is not displayed on the screen. If the user enters the wrong password, they will see the following message on the screen :

Login incorrect.

you need to re-enter this. Once the user has entered the user name and password correctly, they will be able to enter the system legitimately. Screen display:[[email protected] XXQ] $

This indicates that the user is logged on to the system and is ready to operate.

Second, change the password

In order to better protect user account security, Linux allows users to modify their own password at any time, the command to change the password is passwd, it will prompt the user to enter the old password and new password, and then ask the user to confirm the new password again, in order to avoid the user accidentally press the wrong key. If the user forgets the password, you can ask the system administrator to reset it for himself.

three, virtual control console

Linux is a true multi-user operating system, which means that it can accept multiple user logins at the same time. Linux also allows one user to log on multiple times, because Linux, like many versions of UNIX, provides access to the Virtual console, allowing users to log in multiple times from the console at the same time (the system's console is a monitor and keyboard that is directly connected to the system).

The choice of the Virtual Console can be achieved by pressing the ALT key and the CTRL key for a function key, usually using F1-F6.

For example, after the user logs in, click the Alt+shift+f2 key and the user can see the login: prompt, stating that the user sees the second Virtual Console. Then just press the ALT+SHIFT+F1 key and you can go back to the first Virtual Console. A newly installed Linux system allows users to access the first six virtual consoles using the ALT+SHIFT+F1 to Alt+shift+f6 key. ALT+SHIFT+F7 is returned to the graphical desktop;

The Virtual Console allows users to work on multiple consoles at the same time, truly feeling the characteristics of many users of the Linux system. A user can switch to another Virtual Console to start another work when the work on one of the virtual consoles has not ended. For example, when developing software, you can edit it on one console, compile on another console, and access information on a third console.

Iv. Exit System

Whether you are a superuser or a regular user, when you need to exit the system, type the following commands at the shell prompt.

The following is an example of a normal user's exit, stating the process of exiting the system:

[[email protected] XXQ] Exit

Linux system text command quick login and exit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.