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 C Shell (and Tcsh) in UNIX/Linux System

The C shell (or CSH) is one of the earliest UNIX/Linux shell interpreters, developed by Bill Joy at the University of California, Berkeley, in the late 1970s, inspired by the C programming language. Along with Bash and Korn Shell, these three were the most popular

What is Korn Shell (KSH) in UNIX/Linux System

You might have heard of the Bash shell (or even ZSH or Fish), whose popularity has overshadowed other shells to the point that most Linux users think they are the only shell interpreters available for Linux. But before they came into existence, there was another

Beginners Guide for Vdir Command on Linux

The vdir command is an equivalent to the “ls -l -b” command, printing the content in long list format and showing escape characters on the file or directory name, just like the dir command is equivalent to the “ls -C -b” command. Practically, you might

Beginners Guide for Dir Command on Linux

The ls command is famous for showing the content of the current working directory and has become so popular that it outranks other commands like the dir command. The dir command is rarely used today except for shell script; apart from that, both commands have

Beginners Guide for Read Command in Linux

The read command is a built-in Linux utility for shell script writers (and for you) to take single line input from the keyboard or from the file descriptor and store it in a variable. The applications for this command are wide ranging, like asking for

What is Shell? | CLI vs GUI | Shell Scripting Explained

To understand the shell, first look at the following picture: The shell is nothing more than a program that carries the user typed commands or instructions from the terminal and converts them into something that the kernel can understand. If you’re using popular operating systems

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