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

What is Restricted Bash Shell (or rbash) on Linux

Linux (or its shells) is a powerful tool that can handle all the tasks on a workstation or server without a hitch, giving you full control over your system. Like managing the background process, setting up a web server, monitoring the network devices, handling a

What is Chroot Jail and its Usecase on Linux

While walking in your Linux journey, you might hit yourself with the term “chroot” (or “chroot jail”), and that’s what you’re about to learn today: what they are and their usage. Tutorial Details Description Chroot Jail Difficulty Level Moderate Root or Sudo Privileges Yes OS

What is Dash (/bin/dash) Shell on Linux?

You think you always interacted with Bash? Wrong; under the hood, there was a savior to provide you speed and better efficiency, known as Dash. What is the Dash Shell in Linux? Dash (or the “Debian Almquist shell“) is a UNIX/Linux shell that complies with

What is Shebang (#! /bin/bash) in Linux Shell Script

If you have been using Linux for a while, then you have definitely spotted this “#! /bin/bash” line at the beginning of an shell script. What is Shebang (#! /bin/bash) in Linux Shell Script The “#! /bin/bash” on Linux, famously known as shebang or hashbang,

How to Use Here Document (HereDoc) in Linux Shell Script

While writing shell script, you might get stuck in the situation where you want to redirect a block of lines from your script to interactive commands like sed, cat, ssh, or ftp. The purpose of this redirection might vary from situation to situation. For example,

What is Exit Status Code ($?) of Last Command in Linux

The “$?” is a built-in variable that your shell uses to store the exit status code of the last executed command in integer format and remains unchanged unless the next command is executed. Using this exit status code, you can debug the problem that occurred

Beginners Guide for Export Command in Linux

Whenever you start a new shell session (by opening a terminal), a set of environment variables is loaded from the shell configuration file into your current shell session. These environment variables determine different customizations in your shell, like the default editor using “$EDITOR“, or setting

Beginners Guide for PS Command in Linux

The PS, a.k.a. “process status”, is a native command-line utility for UNIX-based systems to monitor the currently running processes in your system. It reads the information from the virtual files in the /proc filesystem and gives the running processes information like memory consumption, CPU usage,

How to Run (.sh) Shell Script in Linux [for Beginners]

How do I write and run a shell script on Linux? Is there a way to run a shell script without executable permission, or can we run a shell script directly from a URL? Don’t worry; you are about to learn all those things in