[Linux] Linux system (login, exit, password repair), linux Password
To log on to linux, enter the user name and password and press Enter.
Change Password
Use the passwd command to enter a new password and confirm the password. The password rules are strict. Try multiple times.
Run the whoami command to view the current user information.
Use the command users, who, or w to view the current online user.
Use the logout command to log out.
Shut down the system
Use the command halt to directly shut down the system
Run the init command to set the startup level. parameters: 0-6 (0 shutdown, 1 single user, 2 multiple users, 3 full users, 4 security mode, 5 graphical, 6 restart)
Use the command poweroff to shut down the system
Run the reboot command to restart the system.
Use the command shutdown to safely shut down the system. parameters:-h, now (shutdown immediately);-r now (restart immediately)