Linux w Command

In this tutorial we learn how to use w commmand in Linux. w command show who is logged on and what they are doing

What is Linux w Command?

In this tutorial we learn how to use w command in Linux. w command show who is logged on and what they are doing

w Syntax

w [options] user [...]

w command Examples

To use w command in Linux, we can just type w. It will provide output similar to below:

 03:51:13 up 4 days, 16:35,  1 user,  load average: 1,31, 1,22, 1,19
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
howtodoj :0       :0               Min18   ?xdm?  41:34m  0.00s /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu

w Command Manual / Help

We can use man and info command to see the manual page of w command.

w command also have --help option to show list of options.

To open man page for w command we can use command below. To exit man or info page you can press q.

man w

To open info page for w command we can use command below.

info w

To open help page from w command we can run command below.

w --help

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use w in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.