How to Create a Systemd Service in Linux (under 1 Minute)

Systemd is a popular init system used by many major Linux distributions, such as Ubuntu, Debian, Red Hat, and Fedora. It’s ofter a service manager that manages various programs and processes on your Linux system. The systemd services are defined in unit files. Few programs

How to Find AWS EC2 Instance Type Over SSH (6 Methods)

AWS provides a range of instance types, like t2.micro (eligible for the free tier), t3.micro, c5.large, and many more. When creating the AWS EC2 instance, you must select an instance type for which your next-month bill will be generated. If you happen to forget the

Install and Use Grunt JavaScript Task Runner on Linux & macOS

The Grunt JavaScript Task Runner could become a resourceful utility in your development as it can automate a wide variety of repetitive tasks such as compilation, autoprefixing, minification, concatenation, linting, and many more. Its installation and configuration are quite simple; all you need to do

Docker Rollout: Zero Downtime Deployment for Docker Compose

In this article, I’ll introduce you to a tool called “Docker Rollout“, which claims to update Docker Compose services with zero downtime. I’ve been testing it for a while, and to be honest, it can do that in a broader sense. Well, there are some

How to Create Device Files Using the Mknod Command in Linux

The “mknod” (or make node) command was originally used to create the character and block devices that reside in the “/dev” virtual filesystem. However, these devices are not regular data files but special files, and modern systems can now create or delete them by detecting

Superfile: A Modern Terminal File Manager for Linux and macOS

Superfile is a modern terminal file manager that recently caught my attention; it’s not only easy to use but is very user-friendly compared to its alternatives, such as Ranger, MC, or nnn. It allows you to create files and directories, view (process, metadata, clipboard), provide

How to Share Your Linux Terminal Over the Web Using Ttyd

Ttyd is a simple tool that allows you to share a Linux terminal over a web browser. It’s cross-platform and uses the libuv and WebGL2 Javascript APIs for performance and real-time connection between the browser and Linux terminal. The SSL support is offered by OpenSSL.

Understanding the /etc/mtab File in Linux

In this article, you will learn what the “/etc/mtab” file is in Linux, the difference between the “/etc/mtab” and “/etc/fstab” files, their relationship to the “mount” and “umount” commands, and the different parameters and directives in the “/etc/mtab” file. What is the /etc/mtab file in

How to Install and Use Screen on Linux (15 Practical Examples)

Screen was a popular Linux command-line tool back in the day for launching and managing multiple shell sessions or splitting the screen vertically or horizontally across multiple terminal instances within a single terminal window manager. This way, you are allowed to manage multiple shell sessions

How to Use ed (Standard Line Editor) on Unix/Linux

Ed is one of the oldest line editor, having existed for almost four decades. It was introduced long before Vi or Vim, and by looking at its functionality, you can clearly say that Vi drew inspiration from ed, as they share many similarities. Before we

How to Use XXD Command in Linux: A Step-by-Step Guide

The “xxd” command allows to convert data from standard input or a file into hexadecimal or binary output, and it can also reverse the process, converting hex (not binary) to regular characters. Debugging, inspecting non-textual content in hexadecimal, analyzing binary file structures, transporting data in

How to Use Envsubst to Replace Environment Variables in Linux

At one point, you may have come across a template, configuration, or initialization file containing bash variables as placeholders that you’ll need to fill in before actual usage. To fill those variables, you can either use the globally set environment variables, such as “$HOME“, “$USER“,