The Expert Crew

Menu
  • Home
  • Android
  • Apple
  • Linux
  • Windows
  • Reviews
  • How To
  • Gaming
    • Xbox
    • PS
    • Nintendo Switch
  • Web

Binance: Buy BTC & 600+ Crypto Ethereum, USDC, XRP and Altcoins with USD Securely

Join Now & Claim Free Bitcoin
Home
How To
How to List All Logged-in Users on Your Linux Computer

How to List All Logged-in Users on Your Linux Computer

August 12, 2021

For your Linux system, there may be multiple users connected to a computer at the same time. The good news is that you can easily find out who is on board and connect to the system. Learn how to list All Logged-in Users in your Linux computer.

Related: How to Send Email From the Linux Terminal

1. Using the “who” command

We use the who command to get information on the different users connected with the information displayed in four columns.

  • The first column shows the usernames.
  • The second column indicates the TTY used.
  • The third column is the time the user logged in.
  • The fourth is the hostname or IP address of the connected users.

You can also display the number of users logged on to the system with the -q parameter.

How to List All Logged-in Users on Your Linux Computer

It is possible to have more information by displaying all details of the current logged-in user with the -a option.

How to List All Logged-in Users on Your Linux Computer

You can get more details on how to use the command by using the --help command if you need additional information.

How to List All Logged-in Users on Your Linux Computer

2. Using the “w” command

Contrary to the who command, the w command shows the users who are logged in and what they are doing.

How to List All Logged-in Users on Your Linux Computer

The output shows some useful information such as:

  • current time
  • how long the system has been running
  • number of users currently logged in
  • name of the logged-in user
  • remote host
  • time the user logged in

You can also display just the information about the logged-in users when you use the -h option.

How to List All Logged-in Users on Your Linux Computer

You can filter the output of the command by using some other options. It’s possible to have a full list of the different options and their roles with the w --help command.

How to List All Logged-in Users on Your Linux Computer

3. Using the “users” command

There is also the simple command users that shows only the users currently logged in without a parameter.

This command does not provide additional information like other commands, but you still know who is currently connected to the system. When you use the man users command, you will see that there is no other information.

4. Using the “last” command

We can use another command. The last command with -a parameter provides you with information such as username (even a special user like “rebo​​ot”), TTY, and IP address of the user’s connection.

When you use the -p parameter, it is possible to display the users connected to the present day.

The command also offers more options that can help you to have useful information. You can check with the man last command.

Using all the above commands, you can easily list the users logged in to Linux. This will allow you to monitor the system and see if there is any unauthorized access. If necessary, you can use these user management commands to perform certain actions on the identified users.

Related: How to Enable Caps Lock Key Indicator in Ubuntu

Share
Tweet
Pinterest
Reddit
Tumblr
Vkontakte
Prev Article
Next Article

Related Articles

How to Hide Items from Control Panel in Windows 11
Although several “Control Panel” items have been moved to the …

How to Hide Items from Control Panel in Windows 11

How to Fix Your iPhone When an iOS Update Causes Issues
  If you have a bit bullet and install a …

How to Fix Your iPhone When an iOS Update Causes Issues

How to Install the One UI 4 Beta on Your Galaxy S21
You can get the One UI 4 beta right now …

How to Install the One UI 4 Beta on Your Galaxy S21

How to Reduce Windows 10 Startup Delay to Speed Up the Computer
When your computer turns on, Windows 10 has a feature …

How to Reduce Windows 10 Startup Delay to Speed Up the Computer

How to Solve the “RPC Server is Unavailable” Error in Windows 10
The RPC server unavailable error may restrict access to certain …

How to Solve the “RPC Server is Unavailable” Error in Windows 10

No Responses

  1. Pingback: How to Stress Test a Graphics Card on Linux - The Expert Crew
  2. Pingback: How to Convert Ubuntu Into Regolith Linux - The Expert Crew

Related Posts

  • How to resize images on Windows 10
    How to resize images on Windows 10

Featured Products

  • Hostinger Web Hosting Review
    Hostinger Web Hosting Review
  • HostGator Web Hosting Review
    HostGator Web Hosting Review
  • Bluehost Web Hosting review
    Bluehost Web Hosting review
  • Best Web Hosting Services: The Top Web Hosts of 2022
    Best Web Hosting Services: The Top Web …
  • Binance Review 2022 – Should You Use It?
    Binance Review 2022 – Should You Use …

The Expert Crew

Linux & Windows 10/11 & Android Tips, Tricks, Help, Support, Downloads, Features
Copyright © 2023 The Expert Crew
About us | Contact Us | Disclaimer | Privacy Policy | Terms of Service