TrumanWong

login

Log in to the system or switch user identities

Supplementary instructions

login command is used to give the login interface, which can be used to log in again or switch user identities. You can also change the login identity at any time through its function. In the Slackware distribution, you can append the name of the user you want to log in to the command, and it will directly ask for the password and wait for the user to enter. When the /etc/nologin file exists, only the root account can log in to the system, and other users are not allowed to log in.

grammar

login(option)(parameter)

Options

-p: Tell the login command not to destroy environment variables;
-h: Specify the host name of the remote server.

Parameters

Username: Specify the username used to log in.