Learn Difference Between $$ and $BASHPID in Bash

Learn Difference Between $$ and $BASHPID in Bash

Recently I was working on a shell script and I saw a significant difference in how bash special variable $ and BASHPID behaves. Every process running in Linux will be assigned with a process ID and that is how the

Learn Difference Between Sourcing and Forking in Bash

Learn Difference Between Sourcing and Forking in Bash

The main focus of this article is to clearly understand what happens when you run the script vs source the script in bash. First, we will clearly understand how the program is submitted when you call the script in different

How to Use until Loop in Your Shell Scripts

How to Use until Loop in Your Shell Scripts

In bash for, while, and until are three loop constructs. While each loop differs syntactically and functionally their purpose is to iterate over a block of code when a certain expression is evaluated. Until loop is used to execute a

10 Useful Tips for Writing Effective Bash Scripts in Linux

10 Useful Tips for Writing Effective Bash Scripts in Linux

Shell scripting is the easiest form of programming you can learn/do in Linux. More so, it is a required skill for system administration for automating tasks, developing new simple utilities/tools just to mention but a few. In this article, we

How to Install and Enable Bash Auto Completion in CentOS/RHEL

How to Install and Enable Bash Auto Completion in CentOS/RHEL

Bash (Bourne Again Shell) is undoubtedly the most popular Linux shell out there, no wonder it is the default shell on many Linux distributions. One of its most charming features is the built-in “auto-completion” support. Sometimes referred to as TAB

A Shell Script to Send Email Alert When Memory Gets Low

A Shell Script to Send Email Alert When Memory Gets Low

A powerful aspect of Unix/Linux shell programs such as bash, is their amazing support for common programming constructs that enable you to make decisions, execute commands repeatedly, create new functions, and so much more. You can write commands in a

jm-shell – A Highly Informative and Customized Bash Shell

jm-shell – A Highly Informative and Customized Bash Shell

jm-shell is a free open source, small, highly informative and customized Bash shell, that gives you a great wealth of information about your shell activity as well as certain useful system information such as system load average, battery status of

Useful Linux Command Line Bash Shortcuts You Should Know

Useful Linux Command Line Bash Shortcuts You Should Know

In this article, we will share a number of Bash command-line shortcuts useful for any Linux user. These shortcuts allow you to easily and in a fast manner, perform certain activities such as accessing and running previously executed commands, opening

Bash-it – Bash Framework to Control Your Scripts and Aliases

Bash-it – Bash Framework to Control Your Scripts and Aliases

Bash-it is a bundle of community Bash commands and scripts for Bash 3.2+, which comes with autocompletion, themes, aliases, custom functions, and more. It offers a useful framework for developing, maintaining and using shell scripts and custom commands for your

Marcel – A More Modern Shell for Linux

Marcel – A More Modern Shell for Linux

Marcel is a new shell. It is similar to traditional shells in many ways, but it does a few things differently: Piping: All shells use pipes to send a text from the output of one command to the input of