Linux and Unix command to list users

Animated gif 01: users command in action

Animated gif 01: users command in action

The users command lists the login names of the users currently on the system, in sorted order, space separated, on a single line. Type the command:

users

Sample outputs:

vivek nixcraft root foo bar

Examples and usage: Linux / Unix: users Command Examples