Howtodojo logo
  • Home 
  • About 
  • Certifications 
  • Sample Database 
  • Cheatsheet 
  • Glossary 
  • Blog 
  • Tags 
  1.   Linux Commands
  1. Home
  2. Guides
  3. Linux Commands
  4. Linux w Command

Linux w Command

Share via
Howtodojo
Link copied to clipboard

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

On this page
What is Linux w Command?   w Syntax   w command Examples   w Command Manual / Help   Related Linux Commands   Summary  

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

Related Linux Commands  

You can read tutorials of related Linux commands below:

  • Linux ls Command
  • Linux cp Command
  • Linux cd Command

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.

On this page:
What is Linux w Command?   w Syntax   w command Examples   w Command Manual / Help   Related Linux Commands   Summary  
Follow me

We publish tutorials, tips and tricks about Linux, open source, cloud computing, and infrastructure

     
Copyright © 2012 - 2025 howtodojo.com. |
Howtodojo
Code copied to clipboard