BASH Articles

Write a bash script to create users and groups systematically

In this article, we are going to learn how to create users and groups through a shell script. Write Script: Now, we will create a script to add a user. The useradd command is used to create a user. We are going to use...

Write a bash script accessing SQL databases remotely or locally

In this article, we are going to learn how to automate SQL queries by connecting to a server using a shell script. Bash scripting is used for automating things. Prerequisites Make sure that mysql, postgres, and sqlite are installed. Ensure that the...

Write a bash script to monitoring directories and files

inotify is a tool in Linux which is used to report when a file system event occurs. Using inotify, you can monitor individual files or directories. Prerequisites Make sure you have the inotify tool installed on your system. How to do it Create a script...

Write a bash script to configuring basic network connectivity

In this article, we are going to configure basic network connectivity using wpa_supplicant. Prerequisites Besides having a terminal open, we need to remember a few concepts: Check whether wpa_supplicant is installed or not. You should know the SSID and...