What is the primary use of the `who` command?

QuestionsQuestions8 SkillsProDec, 20 2025
0117

The primary use of the who command is to display information about all users who are currently logged into the system.

While whoami tells you about yourself, who gives you a broader look at the entire system's activity. It is most useful in environments like servers or shared computers where multiple people might be working at the same time.

When you run who, it typically shows:

  1. Username: Who is logged in.
  2. Terminal: Which terminal line they are using (e.g., pts/0).
  3. Login Time: When they started their session.
  4. Remote Host: Often shows the IP address or hostname if they are connected remotely via SSH.

Try it in your terminal:

who

In this LabEx environment, you might only see one entry (yourself), but in a real-world company server, you might see a long list of colleagues!

Quick Tip: If you want to see what those users are actually doing (which programs they are running), you can use the command w, which is a more detailed version of who.

0 Comments

no data
Be the first to share your comment!