What Does Shell Script Mean?

A shell script is small computer program that is designed to be run or executed by the Unix shell, which is a command-line interpreter. A shell script is basically a set of commands that the shell in a Unix-based operating system follows. Like actual programs, the commands in the shell script can contain parameters and subcommands that tell the shell what to do. The shell script is usually contained in a simple text file.

How to install software on multiple servers

you can set up passwordless access to each of the machines easily enough using…


AWS CloudWatch allows you to collect logs from your AWS EC2 instances as well as on-premise servers. Files such as the Apache2 access and error logs, your application logs, mysql logs or mongodb logs that are commonly found on servers or any log file. This is especially useful if you have a scaling group of instances behind a load balancer. Rather than connecting to each instance and manually searching the logs with grep, CloudWatch centralises the logs into one log stream, allowing you to search all your log files from one place.

For example, we have a few EC2 instances…


You can specify tags for EC2 instances and EBS volumes as part of the API call that creates the resources. Using this principle, you can require IAM users to tag specific resources by applying conditions to their IAM policy. The following example policies don’t allow users to create security groups or key pairs, so users must select pre-existing security groups and key pairs.

The following example IAM policies allow users to:

  • Launch EC2 instances that have matching tag keys and values.

Launch EC2 instances that have matching tag keys and values

Note: Modify key1 and value1 in the example policies…


Today will talk about bash scripts. Bash is a type of interpreter that processes shell commands. A command is given in the form of plain text that calls operating system services to perform a task.

Q What’s the best way to check if a volume is mounted in a Bash script?

In this article, we will discuss different ways to determine if a directory is mounted. We will be doing so using the commands mount, mountpoint, and findmnt.

  1. Using mount command

One way we can determine if a directory is mounted is by running the mount command and filtering the output.

It outputs a list of currently mounted filesystems, so we can use awk to search…


Sonarqube is a popular tool used to derive code quality metrics like Code Coverage, Code Duplication, Code Cyclomatic complexity, and Method Cohesion.

The most typical way of using Sonarqube is to install it on an on-premise server or an EC2 instance in the cloud and ensure to keep it running. The alternative to installing Sonarqube on the server is to use Sonarqube service which has its own cost implication. Through this blog, I would like to present a cheaper and serverless way of installing Sonarqube for large development projects.

We shall be running Sonarqube as a docker inside the AWS…

Krishna Wattamwar

System Administrator | AWS | RHCSA | DevOps www.linkedin.com/in/krishna-wattamwar-212b05159

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store