Find

w – display logged-in users and their activity

w is a command-line utility that displays information about users currently logged in to a Linux system and the processes associated with their sessions. It provides a convenient way to see who is using a machine and what they are doing.

The output begins with a summary of the system’s current time, uptime, number of logged-in users and load averages over the preceding one, five and fifteen minutes.

For each session, w reports the username, terminal, remote host where applicable, login time, idle time and current command. It also distinguishes between CPU time consumed by processes associated with the terminal and CPU time consumed by the current process.

This makes w particularly useful for system administrators checking interactive sessions, investigating activity on shared machines and monitoring remote logins.

This is free and open source software.

Key Features

  • Displays information about users currently logged in to the system.
  • Reports the number of active user sessions.
  • Shows system uptime and load averages.
  • Displays terminal names and remote host information.
  • Reports login times and session idle times.
  • Shows JCPU and PCPU usage associated with user sessions.
  • Identifies the command currently running in each session.
  • Can restrict output to a specified username.
  • Provides a shortened output format.
  • Supports suppressing the system information header.
  • Can display process IDs for login and current processes.
  • Offers terminal-based session detection as an alternative to session records.
  • Supports configurable widths for username and remote host columns.
  • Provides an option to display container uptime instead of host uptime.
  • Can adjust whether remote host information is displayed.

Website: github.com/warmchang/procps
Support:
Developer: Charles Blake and procps-ng contributors
License: GNU General Public License v2.0

w is written in C. Learn C with our recommended free books and free tutorials.

Alternatives to who | Return to Alternatives to uptime


Explore Linux

Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category.
In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality.

The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions.
Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others.
Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems.
Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks.
Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems.
Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux.
Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools.
Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux.
Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted