Bash

How to AWS Assume Role and then revert to the previous role after

May 1, 2024

If you need to assume a role in AWS and then revert back to the previous role once complete, you can use the following snippet of code:


Read More

Show the Top 10 Largest Directories on Linux

March 13, 2024

If you need to see the top 10 largest directories on your Linux system, you can use the following command:


Read More

Retrieve the Latest Versioned Tag from AWS ECR in Bash

February 21, 2024

Managing Docker images in Amazon Elastic Container Registry (ECR) is a common task for many developers and DevOps practitioners.


Read More

How to Generate Terraform using a Bash Shell script

June 23, 2023

To generate Terraform code using a Bash shell script, you can utilize Python within the script.


Read More

How to check if a program exists from a Bash/Shell script

April 18, 2023

You can look to use: command -v <the_command> There are also 2 other ways, that we will run through a little further down, but for now.


Read More

Bash: Convert HTML to Markdown Recursively with Pandoc

March 29, 2023

You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.


Read More

How to Check if a Volume is Mounted in Bash

August 12, 2022

If you need to check if a volume is mounted in a Bash script, then you can do the following.


Read More

How to Determine if a Bash Variable is Empty

August 11, 2022

If you need to check if a bash variable is empty, or unset, then you can use the following code:


Read More