Introduction
In this guide, we will learn how to find out who is currently logged in on your Linux system.
Prerequisites
Before proceeding, ensure you have:
- A Linux system
- Access to the command-line interface
Finding Logged-in Users
To find out who is currently logged in on your system, you can use the following command:
w
This command displays a list of users currently logged in, along with information such as their username, terminal, login time, and IP address.
Alternative Methods
Alternatively, you can use the who
or users
command to display a list of currently logged-in users:
who
users
Conclusion
Congratulations! You have learned how to find out who is currently logged in on your Linux system using command-line tools.