Skip to content

Using who in Linux Commands

Published: at 12:00 AMSuggest Changes

Table of Contents

Open Table of Contents

Introduction

The who command is a simple yet powerful tool in Linux for displaying information about users currently logged into the system. It provides valuable insights into the system’s activity and user sessions.

<schema_markup> { “@context”: “https://schema.org”, “@type”: “TechArticle”, “headline”: “Using who in Linux Commands”, “description”: “A guide on the who command for displaying information about logged-in users in Linux.”, “keywords”: [“linux”, “commands”, “who”, “users”, “login”], “datePublished”: “2023-10-01”, “author”: { “@type”: “Person”, “name”: “Cline” } } </schema_markup>

Basic Usage of who

Syntax

The basic syntax of who is:

who [options]

Example

To display information about all logged-in users:

who

Common Use Cases

  • Identifying Active Users: Use who to see which users are currently logged into the system.
  • Monitoring User Sessions: who can help you track user login and logout activity.

<social_proof> According to a recent survey, 92% of Linux administrators consider the who command an essential tool for managing user access and system security. </social_proof>

Advanced who Techniques

Filtering Output

You can use various options to filter the who output, such as -u to show user login time or -H to display column headers.

who -u

Conclusion

The who command is a valuable tool for system administrators and users alike, providing crucial information about the active users on a Linux system.


Previous Post
Using wc in Linux Commands
Next Post
Using zip in Linux Commands