User Management command: Add user useradd, set user password passwd, view current user who.

Source: Internet
Author: User

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.