How to Install and Use Doas on Linux (with 9 Examples)

Doas is a privilege escalation program similar to sudo. It was originally designed for OpenBSD, which allows users to run commands as if they were another user (e.g., root), and later, due to its simplicity and unique functionality, it was ported to many other Linux

How to Disable Avahi-Daemon Without Uninstalling in Linux

To disable ā€œavahi-daemonā€ without uninstalling, you need to first stop the ā€œavahi-daemonā€ service and then disable it, which will prevent it from starting automatically at boot. šŸ“ If you come across the ā€œJob for avahi-daemon.service canceledā€ or ā€œtriggering units are still activeā€œ, just ignore them

Show Progress of cp, mv, Tar, Rsync, or Scp Commands in Linux

Many Linux commands like cp, mv, rm, and others that perform progressive tasks lack a built-in mechanism or option to display a progress bar. However, a verbose mode is present that can show the detailed insight of each action, but a progress indicator would have

Monitor Network Sockets Using ss Command in Linux

The ā€˜ssā€™ command is a tool used to print network socket-related information such as PACKET sockets, TCP sockets, UDP sockets, DCCP sockets, RAW sockets, Unix domain sockets, etc. It is considered the best replacement for the old netstat command (now deprecated), offering new, powerful, and

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

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