Access ChatGPT Prompt in your Linux Terminal

As Linux users, we primarily rely on the Linux terminal and prefer to use GUI alternatives to the CLI like Ranger (a CLI based file manager) or w3m (a CLI based web browser). In the ongoing buzz of LLM models like ChatGPT, accessing them via

How to Automate SSH Login Using sshpass on Linux

SSH, or Secure Shell, is a widely-used protocol for secure remote access to servers and other network devices. It allows users to connect to a remote machine or server using a command-line interface and authenticate using a password or key-based authentication. If you want to

Clean Up Unwanted APT Packages in Linux

New Linux users often install a lot of unnecessary APT packages that they might rarely use in the future. Also, a few bulky distributions come with many pre-installed APT packages. When the Linux system is running low on disk space, it becomes necessary to clean

Mount and Unmount File Systems in Linux

The mount command in Linux is used to mount a file system or removable storage devices like USB flash drives to a specific point in the directory tree, known as the “mount point”. This allows files and directories on the file system or storage device

Block/Unblock Ping ICMP Requests in the Linux System

Ping is the most commonly used command-line utility used by many sysadmins or network engineers to check whether a target machine is up or down in a given network. We already discussed how this command works in a separate article; click here to read it.

How to Ping Multiple Hosts at High Performance with fping on Linux

First, let’s talk about the traditional ping command, its shortcomings, and how fping can fill those gaps before discussing the fping command. If you are only interested in knowing about the fping command, then click here. So, let’s begin. Short Intro of Traditional Ping Command

How to Talk to Other Users on the Network in Linux

The write command in Linux allows two logged-in users to communicate with each other via the terminal in real time until they are on the same network. This command copies the text from one terminal to another, making it possible to send messages or text

Beginners Guide for Uname Command on Linux

The uname (which stands for “Unix Name”) is a commonly used Linux command-line utility to print basic information about the operating system name and system hardware. The output with the “-a” flag will give you a summary of your system architecture, kernel name, kernel release,

What is File Globbing in Linux (How to Use It with Examples)

If you have ever used wildcard characters like (*) or (?) for global selection, then you are already interacting with file globbing, but let’s get a proper picture of it with its introduction. What is Linux File Globbing? File globbing is a built-in shell operation

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 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