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

What is a Kernel? | Center of Operating System?

The kernel is the core of the system that bridges the hardware and software layers and smoothly creates interaction between them to transport data. But that’s something you already know, right? So, let us learn about a kernel in this fun way: What is a

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,

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

What is Bash Shell on Linux?

Before understanding what is Bash shell, you must be familiar with the concepts of a command-line interpreter and Linux Shell (or sh). What is a Command-Line Interpreter? The term “command-line interpreter” refers to a program or text-based interface that sits between the user and the

Absolute vs Relative Path in UNIX/Linux

In Linux, you might already be navigating through different directories without knowing whether an absolute or relative path is being used. It becomes important for you to understand them when you are working with scripts, navigating through different user or root directories, or creating symbolic

Difference Between /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc

The bash or any other shell uses multiple profiles, also known as shell configuration files, like “/etc/profile“, “~/.bash_profile“, “~/.profile“, “~/.bash_login“, “~/.bashrc“, “~/.bash_history“, and “~/.bash_logout” to configure the user’s interactive login or non-login shell. Files Description /etc/profile It stores the variables, aliases, functions, etc. that are