What are File Descriptors in Linux

In this article, you will learn everything about file descriptors, like their uses in Linux, what a file descriptor table is, how to view the file descriptors under a specific process, and how to change the limit of a file descriptor in Linux. What are

What is inode on Linux?

In this article, you will learn what an inode is, how to check an inode and its size in Linux, and their roles in soft/hard links and system updates. What is Inode in Linux? In your Linux filesystem, an inode (or index node) is a

What is Subshell in Linux?

When you interactively login to your system, you usually interact with your main shell from the terminal to execute commands; however, from your main shell (or parent shell), you can spawn a subshell (or child shell). Confused? I knew this would be more difficult, especially

How to Rename Files and Directories on Linux

Renaming files and directories is one of the most basic tasks that every Linux user performs regularly using the GUI or command line tools. In both of these tools, renaming a single file is pretty easy, but renaming multiple files can be trickier, especially for

Beginners Guide for Rename Command in Linux

In Linux, the rename command is an amazing utility that allows you to rename single or multiple files at once, based on a set of rules or regular expressions you specify. Most of the time, the mv command is used to rename files or folders.

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