Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#linux

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Beyond Windows and Linux: A Comprehensive Guide to Lesser‑Known Network Operating Systems

This article explains what a network operating system (NOS) is, traces its evolution from early batch systems to modern UNIX, Linux, NetWare and Windows Server variants, and details the core functions, architecture, and management capabilities that enable resource sharing, communication, security, and interoperability across networks.

Essential Advanced Linux Commands Every Programmer Should Master

This guide walks through a collection of powerful Linux commands—including xargs for batch processing, nohup for background jobs, ps and sort for identifying high‑memory or CPU processes, multitail for simultaneous log viewing, ping logging with awk, netstat for connection stats, and ssh port forwarding—providing concrete examples and command syntax to help programmers streamline system administration tasks.

Understanding Linux PCI Drivers: A Complete Beginner’s Guide

This article walks readers through the fundamentals of Linux PCI/PCIe buses, explains the kernel PCI subsystem, details core data structures such as struct pci_dev, struct pci_driver, and struct pci_device_id, and provides step‑by‑step code examples for device enumeration, driver matching, resource allocation, and practical driver implementation.

From Beginner to Pro: Write a Production‑Ready systemd Service File

This guide walks through systemd’s architecture, explains each unit type and key directives, and provides a step‑by‑step walkthrough for creating a secure, resource‑limited, production‑grade .service file, including best‑practice configurations for restart policies, logging, timers, socket activation, and security hardening.

Recovering Data After an Accidental rm -rf on Linux: Step‑by‑Step Guide

When a routine rm -rf command mistakenly wipes critical backup directories on a Linux server, this article walks through the immediate containment actions, detailed forensic data collection, the underlying file‑system mechanics of ext4 and XFS, and a comprehensive suite of recovery techniques—from lsof‑based live file grabs to extundelete, debugfs, LVM snapshots, and cloud‑disk imaging—ensuring you can restore lost files safely.

Linux Disk Partitioning, Mounting & Read/Write Issue Troubleshooting Guide

This article provides a comprehensive, step‑by‑step guide to Linux disk fundamentals, partitioning tools, mounting options, filesystem choices, LVM management, performance tuning, common error diagnostics, and five real‑world troubleshooting cases, enabling sysadmins to confidently manage and resolve disk‑related problems.

What Is Load Average? Uncovering the Truth Behind System Load Metrics

Load Average measures the average number of runnable and uninterruptible processes over 1, 5, and 15‑minute windows, differs from CPU usage, and can be misinterpreted—this article explains its kernel calculation, how to assess overload, troubleshoot CPU, I/O, or process‑count issues, and handle container‑specific distortions with cgroup v2 and LXCFS.

Why Server‑Centric Kernel Tuning Breaks Embedded Linux – Lessons from Real‑World Failures

Copying generic server TCP kernel parameters to embedded Linux devices often triggers memory exhaustion, connection drops, latency spikes, and CPU overload because the hardware resources, network conditions, and workload patterns differ dramatically, and the article explains the root causes and provides a safe, device‑specific tuning methodology.

Ops Engineer Core Skills: From Basic Commands to High‑Availability Architecture

This article provides a comprehensive roadmap for operations engineers, covering essential Linux commands, core system concepts, service principles, fault‑diagnosis methods, high‑availability architecture designs, data security, backup strategies, performance tuning, and automation scripts to handle both single‑machine and large‑scale cluster environments.

Practical Guide to Linux Log Management with rsyslog, journald, and logrotate

This article provides a step‑by‑step, production‑ready guide to building a complete Linux logging pipeline using rsyslog, systemd‑journald, and logrotate, covering architecture, configuration, performance tuning, security hardening, troubleshooting, monitoring, backup, and recovery for CentOS 7/8 and Ubuntu 20.04/22.04 environments.

Why Can’t kill -9 Remove Zombie Processes? A Step‑by‑Step Guide to Cleaning Orphans

This article explains the Linux zombie and orphan process mechanisms, why kill -9 cannot terminate zombies, how to detect them with ps, top and /proc, and provides practical cleanup methods—including sending SIGCHLD to the parent, killing the parent, batch scripts, container‑specific solutions like tini, and preventive coding techniques—plus systemd handling and monitoring with Prometheus.

Mastering Docker Performance: Multi‑Dimensional Linux Tools for CPU, Memory & I/O Tuning

This article presents a systematic, production‑grade approach to Docker performance tuning, covering bottleneck modeling, multi‑dimensional monitoring with tools such as docker stats, cAdvisor, sysdig and perf, concrete CPU, memory and I/O tuning flags, automated remediation via Prometheus and Ansible, advanced eBPF tracing, and real‑world case studies that demonstrate measurable latency, throughput and cost improvements.

Speed Up Log Searching with Powerful Grep Combos: A Live Demo

When a teammate struggled to find errors in massive Java service logs, the author demonstrated a step‑by‑step series of grep tricks—locking time and identifiers, chaining filters, using line numbers, context options, real‑time tailing, recursive search, and shell aliases—to turn chaotic log streams into precise, actionable insights.

How to Recover Files After an rm -rf Accident: 3 Proven Methods

This guide explains why Linux's rm command doesn't truly erase data, describes the two recovery windows (process‑held and un‑overwritten blocks), and walks through three practical recovery methods—using /proc FDs, ext4‑specific tools, and generic carving utilities—while also offering prevention strategies such as trash‑cli, snapshots, and robust backup practices.

Microsecond‑Level Sleep: Why thread::sleep Misses Its Target and How to Fix It

On Linux, a call to std::thread::sleep(Duration::from_micros(2)) typically pauses for about 60 µs—30× longer than requested—because the API only guarantees a lower bound and adds a default timer_slack of 50 µs; the article explains the kernel path, shows benchmark data, and provides practical ways to shrink the floor to ~10 µs or achieve sub‑µs latency with busy‑spin and full system tuning.

Dual‑Master Nginx + Keepalived Architecture: Eliminate Single Points of Failure

This guide walks through building a dual‑master Nginx + Keepalived high‑availability setup that doubles resource utilization, removes the idle‑backup drawback of traditional active‑passive designs, and provides step‑by‑step configuration, health‑check scripts, failover testing, best‑practice tips, and troubleshooting procedures.

Why Ops Engineers Still Skip tcpdump? The Command-Line Packet Capture Powerhouse

This hands‑on guide walks you through every practical aspect of using tcpdump—from basic commands and essential filters to saving, reading, advanced flag tricks, performance tuning, security considerations, real‑world case studies, and integration with tools like tshark and Wireshark—so you can capture and analyze network traffic efficiently and safely in production environments.

If You Can't Use These Linux Performance Tools, Your Server Is Just a Paperweight

This article provides a comprehensive guide to essential Linux performance and observability commands—such as vmstat, iostat, dstat, iotop, pidstat, top/htop, mpstat, netstat, ps, strace, uptime, lsof, perf, and sar—explaining their purpose, typical usage syntax, and how to interpret their output for effective system monitoring and tuning.

Essential Network Basics for Ops: IP Addresses, Subnet Masks, and Gateways Explained

This guide walks operations engineers through core networking concepts—including IP address structure, binary‑decimal conversion, private address ranges, subnet masks, CIDR notation, gateway functions, VLAN isolation, routing tables, DNS resolution, Docker/Kubernetes networking, and firewall configuration—while providing concrete command‑line examples and step‑by‑step troubleshooting workflows.

Master Batch Text Processing with awk and sed: A Practical Guide for Sysadmins

This article walks through the fundamentals and advanced techniques of using awk and sed on Linux for batch text manipulation, covering field handling, custom delimiters, BEGIN/END blocks, conditional filtering, arrays, built‑in functions, real‑world Nginx log analysis, script creation, performance tips, common pitfalls, debugging tricks, and how to combine both tools for powerful pipelines.

Master Linux File Permissions: How to Use chmod and chown Effectively

This comprehensive guide explains Linux's permission model, the core concepts of owner, group, and others, demonstrates numeric and symbolic chmod usage, details chown operations, explores special bits, ACLs, common real‑world scenarios, troubleshooting steps, security best practices, and provides scripts for auditing and rollback.

Master Linux Disk Partitioning and Mounting: A Practical Step‑by‑Step Guide

This guide walks Linux operators through the fundamentals of disk partitioning, explains MBR and GPT partition tables, demonstrates the use of fdisk, parted and gdisk, shows how to create and format filesystems, configure mounting options and fstab, manage LVM volumes, and provides real‑world case studies with commands, examples, and best‑practice recommendations.

scp vs rsync: Detailed Usage, Parameters, and When to Choose Each for Server File Transfers

This comprehensive guide explains the principles, syntax, and common options of scp and rsync, compares their features with concrete performance data, walks through dozens of real‑world scenarios—from single‑file uploads to large‑scale log migrations—and provides security tips, error‑handling tricks, and best‑practice recommendations for reliable server‑to‑server file transfers.

Master Linux Directory Structure Quickly: A Practical Guide for Ops Engineers

This guide explains why understanding the Linux filesystem hierarchy matters, walks through the FHS standard, details the purpose of each top‑level directory such as /bin, /usr, /etc, /var, /proc, and provides concrete commands and troubleshooting tips so engineers can locate files, edit configurations, and resolve issues without getting lost.

Encountering Nginx 502 Errors? A Step‑by‑Step Guide to Fast Troubleshooting

Nginx 502 Bad Gateway is one of the most frequent operational issues; this article outlines a systematic, layered approach—from checking Nginx error logs and backend service status to network connectivity, resource limits, timeout settings, and permission problems—providing concrete commands, example scenarios, and preventive measures to quickly identify and resolve the root cause.

600 Essential Linux Commands to Solve 99% of Everyday Tasks

This article compiles a comprehensive list of about 600 Linux commands covering system information, file and directory management, searching, mounting, disk usage, user and group handling, permissions, special attributes, archiving, package management, networking, and text editing, enabling users to handle the vast majority of routine Linux tasks efficiently.

How to Pinpoint Disk I/O Bottlenecks on Linux with iostat and blktrace

This guide walks you through a step‑by‑step, non‑disruptive workflow for diagnosing high disk I/O on Linux servers using built‑in tools such as vmstat, iostat, iotop, pidstat, lsof and the low‑level tracer blktrace, then shows how to interpret the data, identify common root causes, apply targeted fixes, and verify improvements with fio benchmarks and continuous monitoring.

How Linux Sends a Packet: From Process to NIC and the Key Metrics to Watch

The article walks through the Linux packet lifecycle—from the send() system call, through the transport and network layers, to the NIC driver—explaining each step, virtual‑network abstractions, and the essential bandwidth, latency, loss, conntrack, and socket buffer metrics to monitor when problems arise.

Why D and Z Processes Stall Your CPU: Linux Performance Tuning Guide

The article explains the low‑level reasons why uninterruptible (D) and zombie (Z) processes inflate Linux load average, shows how to identify them with ps, wchan and /proc tools, and provides step‑by‑step diagnostics, handling strategies, kernel and I/O scheduler tweaks, and preventive measures to keep the system responsive.

30 Essential Linux Commands Every New Ops Engineer Must Know

This guide walks Linux operations engineers through the 30 most frequently used commands, organized into seven categories, and shows real‑world scenarios, common options, safety warnings, and step‑by‑step examples so newcomers can confidently manage files, monitor systems, troubleshoot networks, handle users, and control services on production servers.

Understanding Linux Kernel’s Four I/O Scheduler Algorithms

The article explains Linux kernel’s four I/O schedulers—Noop, CFQ, Deadline, and Anticipatory—detailing their queue management, merging and sorting mechanisms, priority handling, and hardware‑specific suitability, helping readers choose the appropriate scheduler for spinning disks, SSDs, or database workloads.

Enterprise‑Grade Nginx Configuration: From Binary Install to High‑Concurrency Production Deployment

This guide walks through installing Nginx via package manager or source compilation, explains core roles, provides a production‑ready configuration template, and details reverse proxy, load‑balancing strategies, health checks, high‑concurrency tuning, and HTTPS setup with self‑signed and Let’s Encrypt certificates.

Which Linux Distribution Is Best for Everyday Use Without Programming?

The article explains why modern Linux desktops are user‑friendly, dispels common misconceptions, and recommends several distributions—Ubuntu and its flavors, Fedora Workstation, and Zorin OS—while highlighting potential pitfalls such as limited native Chinese software, gaming compatibility, driver issues, and advises testing in a VM or live mode before full installation.

Linus Calls Out AI‑Generated Vulnerability Reports Flooding the Linux Security List

AI tools are generating massive, duplicate kernel vulnerability reports that overwhelm Linux maintainers, prompting Linus Torvalds to highlight the issue and the kernel’s new documentation that demands reproducible, verifiable reports, while Ubuntu users are advised to focus on updates rather than chasing every headline.

One Bash Script, One Weekend: How AI Uncovered a 23‑Year‑Old Linux Kernel Flaw

A simple Bash script run over a weekend by researcher Nicholas Carlini leveraged Claude Opus 4.6 to discover a critical NFSv4 vulnerability that had persisted in Linux kernels since March 2003, prompting Linus Torvalds to announce AI‑driven security as a new normal in the Linux 7.0 release.

Stop Using ‘ll’: 10 Linux Commands That Can Boost Your Efficiency by 50%

This guide introduces ten essential Linux commands—htop/btop, glances, ncdu, journalctl, ss, tree, watch, xz/zstd/pigz, mtr, and jq—explaining their problem contexts, step‑by‑step usage, risk warnings, and verification methods so you can troubleshoot servers faster and cut routine work time in half.

From Normal User to Root: Inside the ssh-keysign-pwn Linux Kernel LPE (CVE‑2026‑46333)

The article details the ssh-keysign-pwn vulnerability (CVE‑2026‑46333), explaining its exit‑mm/exit‑files race condition, how ordinary users can steal SSH host keys and /etc/shadow via pidfd_getfd, the affected Linux distributions, exploit steps, mitigation measures, and the broader context of May 2026 kernel security disclosures.

Beginner-Friendly Guide to Linux Shell Programming

This article provides a step‑by‑step tutorial on Linux shell programming for beginners, covering variable naming rules, string manipulation, script creation, environment variable handling, arithmetic operations, user input, logical and string operators, as well as common file and directory commands, all illustrated with concrete code examples and screenshots.

How to Diagnose Kernel Panic: A Step‑by‑Step Guide to Finding the Root Cause

This article explains what a Linux kernel panic is, enumerates common hardware and driver causes, walks through the panic() function internals, and provides a practical troubleshooting workflow with log analysis, debugging tools, and a concrete driver example to help operators quickly locate and fix the underlying fault.

Solve System Issues Fast with Linux Log Analysis

This guide walks Linux operators through the core log architecture, essential log files, powerful command‑line tools such as grep, awk, sed and journalctl, and step‑by‑step troubleshooting scenarios—including SSH connectivity, service failures, disk space, memory leaks, security incidents, and application logs—while providing ready‑to‑run scripts and advanced techniques for automated and centralized log analysis.

Why Do Supercomputers Choose Linux Over Windows?

The article explains that Linux dominates the TOP500 supercomputer list because its open‑source nature allows cost‑free licensing, deep kernel customization, extreme flexibility, superior task scheduling, minimal system overhead, and rapid community‑driven security patches, advantages that Windows and macOS cannot match for massive parallel workloads.

Don’t Claim Linux Memory‑Tuning Skills Without Mastering Memory Compaction

This article explains Linux memory compaction—from its core principles and page‑migration mechanics to the different compaction strategies, trigger conditions, practical test cases, and optimization tips—showing how proper compaction resolves fragmentation, improves allocation success, and boosts overall system performance.

Ghostty: 54K‑Star Terminal Faster Than Alacritty, Richer Than iTerm2, Beginner‑Friendly

Ghostty, the open‑source terminal emulator that has amassed over 54 000 GitHub stars, combines Alacritty’s ultra‑fast performance with iTerm2’s rich feature set, offers cross‑platform native support, and provides step‑by‑step installation, configuration, and advanced usage tips for macOS and Linux users.

Run Linux on Your Phone with Termux: Turn Any Android Device into a Pocket Server

This guide shows how to install Termux from the official GitHub releases, update its package sources, add essential development tools, access Android storage, run Python scripts, connect to remote servers via SSH, and extend functionality with tmux, proot‑distro and other utilities, turning a phone into a fully functional Linux environment.

From Zero to One: Mastering Linux NAPI High‑Concurrency Packet Reception

This article explains why traditional interrupt‑driven network I/O stalls under high traffic, introduces the NAPI (New API) mechanism that combines interrupt wake‑up with batch polling, details its core data structures and scheduling functions, and provides step‑by‑step configuration and tuning guidance to achieve efficient, low‑latency packet processing on Linux servers.

Production‑Grade Linux Disk I/O Tuning: From Theory to Hands‑On Practice

This comprehensive guide walks you through the fundamentals of Linux disk I/O performance, explains how to interpret key metrics such as IOPS, throughput and latency, and provides step‑by‑step instructions, scripts and configuration examples for diagnosing bottlenecks, optimizing filesystems, kernel parameters, application settings and storage layouts in production environments.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.