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 cd Command on Linux

The UNIX/Linux CD command is popularly used to move into different directories from the current working directory using the command line (or terminal). When you open your terminal, Linux will use your home directory as the current working directory, so to navigate into a different

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

How to Install Fish Shell (with Starship) in Linux

The Fish is a modern (friendly interactive shell) program identical to its allies, like Bash and Zsh, but with sprinkles on top. What does that mean? You already know about the Bash shell (because it’s the default login shell for most Linux distros) and the

How to Install Zsh (with Oh-My-Zsh) in Linux (Ultimate Guide)

Bash is the default shell for most of the Linux distributions, but it is not the only one; there are other shell interpreters like ZSH (and Fish) that are available. Kali Linux and macOS Catalina were early adopters of ZSH as the default login shell,

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,

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,