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

The “who” command in Linux/Unix is used to list the users who are currently logged into the system. Here are some examples of using the “who” command:

  1. List all users:
who
  1. List users who are logged in to a specific terminal:
who tty1
  1. List users with their hostname:
who -H
  1. List all information about users:
who -a
  1. List users sorted by time they logged in:
who -u

These are some basic examples of using the “who” command. For more options and information, you can refer to the manual page by running the following command:

man who

Leave a Comment