User management command: Add User useradd, Set User Password passwd, view current user who.
Add User in Linux: useradd User Name
Add password for username: passwd Username
View all users in the system: cat/etc/passwd | cut-f 1-d:
Note: | it is an MTS queue that transmits cat output to cut for processing. The following cut is used to extract the first column of each line separated.
You can use the who command to view which users are currently logged on. A single user can log on multiple times. For example, there are two root users. A root is in its local directory, and a root is
Log on remotely using secureCRT
Explanation of information displayed by who:
The first column is the login user name. The second column is the login terminal. The tty In the login terminal indicates local login, that is, the login on the real machine,
Pts indicates a remote terminal. If multiple remote terminals exist,/, 2, and so on will be added for the sake of difference, such as pts/0, pts/1, pts/2 ....
The last logon time is the IP address of the logon host.
The information displayed by w command is more detailed than that displayed by who command. He will make some simple statistics on system resources, such as how many login users there are, how long has Linux been running since the beginning.