Gradle is the newest addition to the Java build project automation tool family. It is open sourced under Apache License 2.0 and its first version (0.7) was released in 2009. Gradle has been gaining a lot of adoption as it draws on lessons learned from other existing build tools such as Ant and Maven. Several […]
DevOps
kubectl: command not found
The Kubernetes command-line tool, kubectl is used to run commands against Kubernetes clusters. You’ll use kubectl to inspect and manage your service’s cluster resources and view logs. Some commonly used commands for retrieving information about a Kubernetes cluster are as follows: kubectl get shows information about the specified API object. kubectl describe gives more detail […]
ansible-playbook: command not found
Using ad-hoc commands is an imperative method and is no better than using the SSH client to execute commands remotely. You need two components to make it into real, imperative orchestration: a playbook and modules. The playbook is the basis for your system’s deployment, configuration, and maintenance. It can orchestrate everything, even between hosts! A […]
aws-shell: command not found
aws-shell, released by AWS labs, is a rich command-line shell with built-in autocompletion and help documentation. It’s very similar to the previous interactive commands we learned about for Microsoft Azure and Google Cloud. It also offers robust auto-completion, including the ability to autocomplete resources such as EC2 instance names. For most commands, we simply prefix […]
Install AzCopy on Linux – Fastest way to copy in Azure
AzCopy is a command-line tool that is used for copying data to and from Azure Storage Blob, File, and Table services, or to and from objects within the same storage account, and even between different storage accounts. AzCopy is available in two flavors: AzCopy on Windows AzCopy on Linux There are two versions of AzCopy […]
How to add header and trailer line to a file in Linux
In this article, we will see the different ways to add a header record or a trailer record to a file. Let us consider a file, file1. $ cat file1 apple orange grapes banana Adding a line to the start of the file (header) 1. To add a header record using sed: $ sed ‘1i […]
How to Install awscli
What is the AWS CLI? The AWS Command Line Interface (CLI) is for managing your AWS services from a terminal session on your own client, allowing you to control and configure multiple AWS services and implement a level of automation. If you’ve been using AWS for some time and feel comfortable clicking your way through […]
Shell Script to print pyramid of Stars
The Basics So here we will print the pyramid of stars in two parts as shown below. We will loop through the number provided by the user and print the first half of the stars using a for loop and other half using another for loop. The spaces and new line characters are added in […]
Shell/Bash Script to Find Prime Numbers in Linux
A prime number is a whole number that has exactly 2 different factors, 1 and itself. A number that is not a prime number will be called composite. Except 1 each natural number that is divisible by only 1 and itself is called a prime number. For example: 2,3,5,7,11,13,17,19,23,29… etc. There are total 25 prime […]
How to convert text files to all upper or lower case
As usual, in Linux, there are more than 1 way to accomplish a task. To convert a file (input.txt) to all lower case (output.txt), choose any ONE of the following: To convert a file (input.txt) to all lower case (output.txt) 1. dd: You may have used dd for many other purposes but it can be […]