Add users under Linux: Useradd user name
Add password for user name: passwd user Name
To view all users in the system: CAT/ETC/PASSWD |cut-f 1-d:
Note: | is a pipe that transmits the cat's output to cut processing; The following cut takes out each line: the first column of the split.
With the WHO command, you can see which users are currently logged on, and a user can log in multiple times, such as two root. A root in its local, a root
Log in remotely via SECURECRT
The WHO shows the information explained:
The first column is the login user name the second column is the login terminal, the TTY in the login terminal means log on locally, that is, log on to the real machine,
PTS indicates a remote terminal, if there are multiple remote terminals, in order to differentiate, will add/0,1,2, such as pts/0, PTS/1, PTS/2 ....
Finally there is logon time, the IP address of the logged-on host
The information displayed with the W command is more detailed than the information displayed by the WHO command, and he will do some simple statistics on the resources of the system, such as how many logged-in users there are, and how long this Linux has been running from the beginning to the present.
User Management command: Add user useradd, set user password passwd, view current user who.