Linux Vipw and Vigr Commands Explained

In Linux, you use the useradd, passwd, usermod, and gpasswd commands to modify users or group-related information, like creating them, deleting them, assigning passwords, etc. Note that these commands only provide you an interface to modify the “/etc/passwd“, “/etc/shadow“, “/etc/group“, and “/etc/gshadow” files with safety

How to Change History File Location in Linux (with an Example)

The Linux shell (specifically, “Bash“) records all the commands you run in your terminal and stores them in the “.bash_history” file in your home directory. You can use tools like the history command, which provides you many features and functionality to work with this file,

How to Backup and Restore Linux Command History

The Linux shell (specifically, “Bash“) takes each executed command as an event and saves the command in the “.bash_history” file located in the user’s home directory. Now, there are two ways to view the history record of a user’s executed command: one using the history

How to Run a Linux Command Without Keeping It in History

Each command executed in your Linux terminal is being recorded by your shell (referring to Bash) in a separate file (like “~/.bash_history“) that you can view using the history command. For most Linux distributions, the number of commands that should be recorded and the number

Beginners Guide for History Command in Linux

Each command executed in your Linux terminal is taken as an event and associated with an event number (or index number) later found in the “~/.bash_history” file. Now, you can use a program like a “cat” to read the record of this file, but Linux

“most” is an advanced alternative for the less command

The pager programs like more, less, and “most” are often used to fit the output of a particular command that is too big to fit on one screen. So, what is the difference between them? Features of More Command A few more features that it

Beginners Guide for Watch Command in Linux

In UNIX/Linux, “watch” is a resourceful utility for monitoring updates in the specified command output (including errors) by refreshing the results every 2 seconds until it is interrupted using the “Ctrl+c” shortcut key. It makes it easier for you to monitor the updates in background

A Tale of “More” and “Less” Commands in Linux

Linux users often use “more” and “less” commands interchangeably to read large files without understanding their differences, as their definitions are also identical in the manual. So, what’s their difference, and when should you use them? All of this doubt will be cleared in this

What is SSH and How to Install it on Linux?

In this article, you will learn what the SSH protocol is, how it works, and a short history of this protocol. If you are only interested in the installation part, then click here. Tutorial Details Description OpenSSH Difficulty Level Moderate Root or Sudo Privileges Yes

Listing All the Available Shells in Your Linux System

Bash is the most popular shell implementation program that most modern Linux systems like Debian and Ubuntu ship out of the box, unlike ZSH and Fish. However, operating systems like Kali Linux and macOS took a step forward by providing ZSH as the default login