What is Package Manager in Linux (Their Types with Examples)

A package manager is a command-line or graphical tool that allows you to easily search, install, update, and remove software packages on a Linux system. The software package is a collection of different files bundled together for simple distribution and installation. When installing any software

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

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

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“,

Understanding the /proc/cpuinfo File in Linux

In Linux, “/proc” is a special virtual file system that contains valuable system-related information in different files. Such a file is “/proc/cpuinfo“, which stores detailed information about the CPU, such as vendor ID, CPU family, model name, virtualization features, caches, and many more. Since it’s

Fixing the ‘update-grub: command not found’ Error in Linux

The “update-grub” command, commonly used to apply changes made to the GRUB on Linux, was not available on my newly switched vanilla Arch system. Initially, I was quite surprised because I remember selecting GRUB during installation, and the GRUB screen also appeared on system boot,

How to Add and Remove Passwords from PDF Files on Linux

PDFs are the primary file format for sharing sensitive educational, government, or office documents with individuals, often encrypted with a password to prevent unauthorized access. However, with a valid password, individuals can easily decrypt and store them in an encrypted wallet for future access. But

How to Enable/Disable Monitor Mode in Linux (using 3 Methods)

If you are a penetration tester, network administrator, or security professional diving into the realm of WiFi pentesting, your journey will involve enabling monitor mode on your Network Interface Card (NIC). In this article, we go over what monitor and managed modes are in your

Fzf: Quick Search via Fuzzy Finder on Linux (Install + Use)

“fzf” (or fuzzy finder) is a small, blazingly fast, and cross-platform command-line utility that allows you to perform interactive or dynamic searches via an interactive interface for effortless navigation and selection from matching options. It’s very flexible, and most often you will use it with