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

Running LLMs Locally Using Ollama and Open WebUI on Linux

🚀 Quick Overview In this article, you will learn how to locally access AI LLMs such as Meta Llama 3, Mistral, Gemma, Phi, etc., from your Linux terminal by using an Ollama, and then access the chat interface from your browser using the Open WebUI.

How to Install and Use Codon on Ubuntu (and Other Linux Distros)

Python is undoubtedly a popular programming language, but due to its design, it lags behind in certain aspects, which leads many programmers to choose a different programming language. One aspect that Python has traditionally faced limitations in executing tasks concurrently and efficiently due to the

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

ShellBench: Perform Benchmark Tests on Various Linux Shells

ShellBench is a free benchmark tool written in a shell script for POSIX shell comparison. It allows you to execute a series of commands in an infinite loop or until the timeout. This way, you can test and compare the performance of various shells like

Inotifywait: Monitor Live Events on Files and Directories on Linux

Inotifywait is a Linux command-line utility that assists system administrators in monitoring events such as opening, modifying, reading, closing, moving, or deleting on files or directories. It can seamlessly integrate with other tools or be used within a shell script. So, if you want to

Fixed “traceroute: command not found” in Linux

Traceroute is a widely used network management command-line utility for Linux and macOS. It counts the number of hops required for the source to reach the destination, as well as the duration of each hop. It’s pretty useful when you need to troubleshoot the route

How to Install LXD on Linux (with Pro’s Practical Examples)

LXD (pronounced lex-dee) is a lightweight container manager that allows you to run Linux containers (LXC), a type of container similar to VMware that maintains its state even after a system reboot and uses the host system kernel. The LXC container creation process is similar

Killport: Stopping Processes by Port Number in Linux

killport is a CLI tool that provides a simple solution to stop processes by their port number, thereby resolving the problem of users struggling to identify the processes behind an open port. This way, you don’t have to follow the traditional method of finding the