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

What Are the Different Types of Linux Shells?

The UNIX/Linux shell is a command-line program that creates a bridge between the terminal emulator and kernel to allow users to enter commands, execute programs, and perform various other tasks by typing commands at the command prompt. Once the shell has finished executing the user

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

Beginners Guide for mv Command on Linux

In UNIX/Linux systems, the mv command shipped with the operating system is usually used for the following purposes: If you’re familiar with the cp command, you can use the same techniques to use the mv command. Even though you can use this article to learn