How do you get userlist in linux?

In: Linux

method 1.

to get all users of the system

cat /ect/passwd

(the 1st words, before the semicolon, are the usernames)

method 2.

to get only the usernames of people using the system

ls /home/

Answer

To see only who is logged on at any given moment, type...


who

and press the enter key.

Improve Answer Discuss the question "How do you get userlist in linux?" Watch Question

First answer by ID1370925961. Last edit by John.m.horn. Contributor trust: 15 [recommend contributor]. Question popularity: 21 [recommend question]


Research your answer: