| by Arround The Web

10 Bash Scripts to Automate Daily Linux SysAdmin Tasks

Daily tasks to automate for a SysAdmin are: package, network, firewall, service, etc. Read this article for practical demonstrations of these scripts.

Read More
| by Arround The Web

How to Check Bash Version

You can check the bash version for many cases, including troubleshooting and finding the currently available version in the system.

Read More
| by Arround The Web

How to Set and Use Environment Variables In Bash Script

Environment variables are used to store and manage the data to modify the processes in the Linux system.

Read More
| by Arround The Web

Bash Script Loops Examples

Loop allows you to repeat the desired set of instructions numerous times to attain the desired outcome.

Read More
| by Arround The Web

What is Shebang: Bash Script Header on First Line?

Shebang works as the absolute path for the script interpreter. It has various names like shebang, bang line, and hashbang.

Read More
| by Arround The Web

Bash Script Include Another Bash Script

Including one script in another can help you automate the command sequence’s code block.

Read More
| by Arround The Web

What is Proper File Extension for a Bash Script

If you are new to shell scripting, please use .sh scripting and .bash to work around the bash environment. 

Read More
| by Arround The Web

How to Make Bash Script Executable

In Linux, you must provide the executable permissions to run bash scripts from the command line.

Read More
| by Arround The Web

How to Create File in Bash

There are various simple ways you can use to create a the files in bash. We have explained multiple commands to create bash files from the terminal.

Read More
| by Arround The Web

How to Prompt Bash for User Input

Practical guide on how to prompt Bash to take the user input using the “read” command in basic and advanced scripts to implement it without any further queries.

Read More
| by Arround The Web

Advanced Bash File Operations

Tutorial on the different advanced types of Bash file operations to know the various file-related tasks such as creating the files, appending the files, etc.

Read More
| by Arround The Web

How to Find Yesterday Date in Bash

The date command is used with the –date or -d option with 1 day ago or yesterday strings to get yesterday’s date.

Read More
| by Arround The Web

16 Bash Regular Expression (RegEx) Examples Using grep, sed, and awk Commands

Regex is a sequence of special characters that form a pattern to find specific pattern-matching. This guide provides 16 bash regex examples.

Read More
| by Arround The Web

Copying Files and Directories in Linux

Practical guide on the ways of copying the files in Linux using the cp, rsync, and scp commands to copy the files and directories locally and to a remote host. In this guide, we will learn about copying files and directories in Linux.

Read More
| by Arround The Web

Is there a TRY CATCH command in Bash?

Bash does not have the try-catch command. A few alternatives like checking exit code, the trap command, and tracing output, can be applied to locate the errors instead.

Read More
| by Arround The Web

Prompt for Input in Bash

Comprehensive tutorial on the uses of prompt with the “read” command in the Bash script and the benefits of using a prompt message with the “read” command.

Read More
| by Arround The Web

Using the =~ Operator in Bash

Comprehensive tutorial on the various methods of using the =~ operator in Bash to search the string values with different types of regular expressions.

Read More
| by Arround The Web

Escape a Single Quote in Bash

The purposes of using the single quotes in the Bash script using single quotes with both echo and printf commands to define a string data or execute a command.

Read More
| by Arround The Web

Bash Logical AND (&&) Operator

The simple uses of the logical AND operator in Bash script to define the logical expressions in any programming language and check two or more conditions.

Read More
| by Arround The Web

Bash Substring after a Specified Character

Practical guide on the various uses of Bash substring extraction to extract the substring from a string data after a specified character using the Bash script.

Read More