BASH Programming

How to debug a bash script?

A script is just a file containing a set of commands. The basic idea of a script is to automatically execute and re-exec...

Read More

Bash Command Not Found, Common Reasons and Solutions

Most of the time in Linux OS we run commands and programs by typing the commands in the Terminal program. However, somet...

Read More

How to Set Environment Variables in Linux

Setting environment variables in Linux is a good way to define common and repetitive variables that are used across a nu...

Read More

Some Useful Bash Aliases and How to Create Bash Aliases

Do you spend a good amount of time working in the command line? Then you may have noticed that most of the commands you ...

Read More

How to Check the OS version in Linux

For a regular Linux user and especially administrator, knowing the version of the OS they are running is very important....

Read More

How to Use xargs on Linux

xargs is a command line tool. If you want to redirect the output of a command as the argument of another command, then x...

Read More

How to Check if a Command Succeeded in Bash

Whether you’re writing a script or just being curious, it’s useful to know that the command succeeded without any issue....

Read More

How Does PATH Work in Bash

When you’re typing a command in the Linux terminal, you’re generally calling a program to do a certain job, for example,...

Read More

74 Bash Operators Examples

Different types of operators exist in Bash to perform various operations using bash script. Some common groups of bash o...

Read More