BASH Articles

Calculating and reducing the runtime of a script

In this article, we are going to learn how to calculate and reduce the scriptโ€™s runtime. A simple time command will help in calculating the execution time. Prerequisites Besides having a terminal open, make sure you have the necessary scripts present in your system....

Using Bash to monitor battery life and optimize it

In this article, we will learn about the TLP Linux tool. TLP is a command-line tool; it is used for power management and will optimize the battery life. Prerequisites Besides having a Terminal open, you need to ensure that you have TLP installed on...

Creating a simple NAT and DMZ firewall using bash script

In this article, we will create a simple NAT firewall with DMZ using iptables. Prerequisites Besides having a Terminal open, you need to ensure that iptables is installed in your machine. Write script We will write a script to set up a DMZ...

Making a simple IRC chat bot logger using bash script

In this article, we will make a simple bot logger. This script will log a few channels as well as handle the pings. Prerequisites Besides having a Terminal open, you need to have basic knowledge of IRC. Write script: Now, we will write a script for an IRC logging bot....
Introduction to Bash Scripting

Introduction to Bash Scripting

Bash scripting is your gateway to the world of automation and efficient task management in the Unix/Linux environment....