Categories
Unix/Linux

How to download YouTube live stream video in chunks

In this tutorial, we gonna download YouTube live stream video in chunks for the given interval. We gonna run few commands in the terminal for this task, you can use any programming language to do the same to automate things. FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. Using […]

Categories
Unix/Linux

How to create an SSH shortcut

In this post, I would like to show you a quick way to SSH into VMs. Using this approach you don’t have to type  ssh -i ..etc every time.  Let’s open your ~/.ssh file and create a file called config and copy below shown text to it,  If you get Permission denied issues,  change the file permission […]

Categories
Unix/Linux

How to send emails from shell script using sendgrid

In my recent project, we have developed a small process monitoring system to check the health of the process and it should send emails if the process goes down. For sending emails we have used SendGrid and below is the shell script model which we have used to send the email.

Categories
Unix/Linux

How to disable IPv6 on Ubuntu

In this post, I will show you disabling IPv6 on your Ubuntu machine. Before going further, let’s check the current status of the IPv6 on your machine. To check the status, open up the terminal and enter the following command /proc/sys/net/ipv6/conf/all/disable_ipv6 if the return value is 1, then IPv6 is already disabled and if the […]

Categories
Unix/Linux

How to delete files older than X days in Linux

In this post, I am gonna show you how to write a simple shell script to delete files from a directory if the files are older then X days. We gonna use find utility function to search and find the files from the given specific directory. Command to delete files older then 10 Days Command […]

Categories
Unix/Linux

How to install the management plugin, RabbitMQ

By default, RabbitMQ does not embed a web-based management console but offers it as an optional plugin. This management console makes it very easy to peek into a running RabbitMQ instance, so we definitely want to have it installed from the get-go. The Debian package has installed several scripts, one of them being rabbitmqplugins, whose […]

Categories
Unix/Linux

How to install and setup RabbitMQ on Ubuntu 16.04

In this post, I will show you how to install RabbitMQ on Ubuntu 16.04. We can install RabbitMQ easily using Ubuntu’s package manager, apt. The apt is package manager allows us to install most software pain-free from a repository maintained by Ubuntu. What is RabbitMQ? RabbitMQ is a robust messaging system for building applications and […]

Categories
Unix/Linux

.dockerignore

In this post will show you how to use the .dockerignore. It will help reducing Docker image size, speedup docker build and avoid unintended secret exposure. .dockerignore behaviors same as .gitignore, it removes the extra unwanted files from your image, so you only end up with the files you need for running your application. The […]

Categories
Unix/Linux

How To Stop and Remove All Docker Images, Containers, and Volumes

In this guide, I will show you simple tips to stop and remove containers, docker images, and values. List all Docker Images Removing Docker Image or images Removing All Docker Image Remove a container(s) Remove a container and its volume List all containers (only IDs) Stop all running containers Remove all containers Remove all exited […]

Categories
Unix/Linux

How to determine the version of bash

In this post, I would like to show you a very trivial example, which will help you to find the version of the bash that you are running. The easiest way to determine the version of bash that you are using is to print the value of an environment variable. The following command will display […]

Categories
Unix/Linux

Zip and Unzip Linux Commands

In this post, you will find practical examples showing how to install and use the zip command to compact and organize files within your file system. Zip is a compress tool which is available in most of the operating systems such as Linux/Unix, Apple OS, Microsoft OS etc. Install zip and unzip command in Linux? […]

Categories
Unix/Linux

How to delete files and directories in Unix/Linux

In order to remove, delete or unlink files in Unix/Linux operating system we need to use the rm command. Syntax : To delete file we simple write command like this : or if you want to see a warning message before deleting file use -i option as shown below if you want to delete folders, […]