Linux / Unix who Command Examples To List Users on The Systems

Linux / Unix who Command Examples To List Users on The Systems

The who command is a utility that displays information about the users who are currently logged into the system.

To use the who command, you can simply type who at the command prompt and press Enter. This will display a list of users who are currently logged into the system, along with the following information:

  • The username of the user.
  • The terminal or console that the user is logged in on.
  • The login time of the user.

For example:

$ who
user1 tty1 2020-08-12 22:24
user2 tty2 2020-08-12 22:24
S‮www:ecruo‬.lautturi.com

This will display the list of users user1 and user2 who are currently logged into the system, along with the terminal and login time for each user.

The who command does not display the current working directory or the command that the user is currently running.

The who command has several options that allow you to customize the output. For example, you can use the -b option to display the last system boot time, or the -u option to display the current user processes.

For more information about the who command and its options, you can consult the documentation for your specific Unix or Linux system.

Created Time:2017-10-29 22:08:58  Author:lautturi