Extending an Existing Hard Drive

This article is targetted at virtual servers where the capacity of a drive can be extended without having to replace the physical hardware. If you have a physical hard drive where all the space has not been allocated, these instructions could still be of use – but that scenario is not likely. Identify additional drive … Read more

Adding a New Hard Drive

Adding a new hard drive to a Linux instance involves the following steps Add physical / virtual drive to the instance Scan for and identify new drive Prepare new drive for use Adding the new drive is outside of the scope of this article, as it can be done in many different ways depending on … Read more

Convert an IP Address to a Number

There are many occasions when it can be useful to take the IP address of a host and convert that into a decimal number. Create a new file called ip2dec on your system containing the following code Then make the file executable by running This script will take a single IP address as an input … Read more

Convert a Number to an IP Address

On occasion, it is necessary to convert from a numeric value to an IP address, particularly if that numeric value was created by converting from an IP address. In a previous article, I showed how to Convert an IP Address to a Number, here I will show you how to reverse that process. Create a … Read more

Command Pipeline Errors

When chaining commands in Bash using the pipe | separator, the commands execute in sequence, with the output of the first command being used as the input to the second command. When running a single Bash command, it is possible to detect if an error has occurred by examining the $? built-in Bash variable directly after … Read more

Command Pipelines

When using pipelines, the output from the first command is treated as the input to the second command, the output of the second command is treated as the input to the third command, and so on.

I’m finally getting started!

After spending over 25 years in the industry as a full-stack developer, Linux admin, MySQL DBA, Data Architect and Infrastructure Architect I thought it was about time I started to write down some of my findings and experience over the years. My current specialist areas are MySQL and Amazon Web Services (AWS). In the MySQL … Read more