How to List All Logged-In Users in Your Linux System

Have you ever been curious to know who is connected to the remote machine or server you have been working on? I mean, who doesn’t want to do that? Look, listing all the user accounts in your Linux system is quite an easy task, but

Beginners Guide for Uptime Command in Linux

The uptime command is one of the many resourceful Linux utilities for sysadmins that is capable of telling the system boot related information like the current time, the uptime (in days and hours), the number of users currently logged on to the system, and the

Beginners Guide for Who Command in Linux

The who command is a built-in Linux utility that shows a list of users who are currently logged on to the Linux system. In this article, you will learn how to use this command and what options it has to offer (with practical examples). Tutorial

How to List Logged-in Users Using w Command in Linux

The w command is a built-in Linux utility that allows you to list logged-in users on your system, including additional information about them. This includes their username, the terminal devices (TTY) they are using, the remote host or IP address they have connected from, the

Beginners Guide for Logname Command on Linux

The logname command gives you the username of the currently logged-in user by reading the “/var/run/utmp” file, which is identical to the whoami command with one difference. Stick with this article to learn the difference between the logname and whoami commands, the usage of the

Beginners Guide for Whoami Command on Linux

The whoami (concatenated of the strings “who,” “am,”, “i” as whoami) is a Linux command line utility that prints the username associated with the current effective user ID. It comes in handy, especially while writing the shell script, like fetching the username within the script

5 Ways to Follow (or Find All) Symbolic Links in Linux

Symbolic links (also referred to as “soft links” or “symlinks”) are a kind of shortcut to another file used in the Linux operating system mostly for shared libraries. If you’ve been using Linux as a regular desktop, you might already have encountered one or will

Beginners Guide for Realpath Command on Linux

We recently published a detailed article on the use of the readlink command in Linux; if you read that article, you will understand this better. In short, both are identical tools for finding the original file to which the soft link points. But this tool

Beginners Guide for Readlink Command on Linux

If you have been following us for a long time, then you might already be aware of symlinks (or soft links), but for a quick reminder, they are a kind of shortcut to another file in Linux. Now, you might already be interacting with soft

Beginners Guide for Ping Command in Linux

PING, also known as “Packet Internet Groper”, is the most common networking tool used in Windows, Linux, and macOS to test the connection between the source and the destination. The destination, or remote system, could be a web server, your router, or a computer on

Beginners Guide for Hash Command in Linux

You might already be aware of the Linux shell’s default behavior of capturing each user’s executed commands and storing them in the “~/.bash_history” file, so later you can view the history list using the history command. Although, history is not the only location where your

Purpose of /dev/sda on Linux (When to Use It with an Example)

When a Windows user encounters a Linux system for the first time, their first thought is: where are the “C:/“, “D:/“, or “E:/” drives? So, my innocent Linux newbies, you must know that Linux doesn’t have any concept of local disk like in Windows; here,