Enter and exit the system (one of the LINUX articles)
Source: Internet
Author: User
Article title: enter and exit the system (one of the LINUX series ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Original: snail ke_liu
Hello everyone, I have been using LINUX for some time. I have accumulated a little bit of experience to share with you. I hope you can support it!
LINUX history will not be introduced here !! In fact, I am not very clear! :)
1. login system
When a user logs on to the system, the user name and password must be entered to enable the system to identify himself. You can create two types of accounts during system installation:
1. Root: super user account, which can be used to do anything in the system.
2. Common User: This account is used by common users and can perform limited operations.
Generally, Linux users are common users, while system administrators generally use superuser accounts to perform system management. If you are not familiar with LINUX, it is recommended that you use a normal account before entering the exercise! If you need to use ROOT to SU to ROOT, this can reduce the number of reinstallation times for your LINUX system :)
User logon is performed in two steps: Step 1: enter the user's login name, and the system identifies the user based on the login name. Step 2: Enter the user's password, the password is a string selected by the user and is confidential to other users. it is a key word used by the system to identify true and false users during logon, in addition, it is worth noting that the LINUX password is not displayed, which may cause misunderstanding for the first contact with her!
The super user's username is root, and the password has been set during system installation. After the system is started successfully, the following prompt is displayed:
Localhost login:
Enter the super user name "root" and enter the enter key. At this time, the user will see the prompt for entering the password on the screen:
Localhost login: root
Password:
Enter a password. The password is not displayed on the screen. If you enter an incorrect password, the following information is displayed on the screen:
Login incorrect.
In this case, you need to re-enter. After you enter the user name and password correctly, you can access the system legally. Screen Display:
[Root @ loclhost/root] #
This indicates that the user has logged on to the system and can perform operations. Here "#" is the super user's system prompt. After a common user logs on to the created account, the user can log on.
If the following prompt appears when a common user logs in:
[Xxq @ loclhost xxq] $
This indicates that the user has logged on to the system and can perform operations.
Linux allows you to change your password at any time. the command for changing the password is passwd. it will prompt you to enter the old password and new password, and then ask the user to confirm the new password again. The specific commands will be described later!
Virtual Console
The choice of the virtual console can be achieved by pressing the Alt key and a function key, typically using a F1-F6
For example, after a user logs on, click the Alt-F2 key and the user can see the "login:" prompt, indicating that the user sees the second Virtual Console. Then, you can use the ALT + FX key to switch between the Virtual Console!
If you want to exit the system as a super user or a common user, enter the following command at the shell prompt.
The process of exiting the system is described as follows:
[Xxq @ loclhost snke_liu] $ exit
You can also press a key such as REBOOT to restart the machine)
ROOT can also shut down through INIT 0.
There are other methods to exit the system, but the top one is the most secure.
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