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.

What Linux Commands Should You Master for Java Interview Troubleshooting?

This article categorizes essential Linux commands for Java developers, explains why interviewers focus on real‑world usage, provides scene‑based command tables, demonstrates log‑analysis and performance‑monitoring workflows, and offers concise answers to common interview follow‑up questions.

Comprehensive Guide to Linux Memory Management: Concepts, Techniques, and Code Examples

This extensive article explains Linux memory management fundamentals, covering physical and virtual memory, allocation and release mechanisms, key kernel functions, performance tuning, leak detection, fragmentation handling, and real‑world code samples for developers and system engineers.

Why Is Your Linux Server Booting So Slowly? Practical Boot Chain Optimization

The article explains why Linux servers often experience slow boot times, outlines a systematic method to analyze each stage of the boot chain—from firmware to user services—identifies common bottlenecks, and provides concrete systemd, BIOS, GRUB, initramfs, and service‑level optimizations with commands and verification steps.

WITR: Why Is This Running? A Tool That Traces Process Causality, Not Just State

WITR is an open-source troubleshooting tool that unifies Linux process, port, file, and service queries into a single ancestry chain, showing not just what is running but why—via process parentage, systemd, containers, and Git context—with JSON output for automation.

Top 10 Must‑See Open‑Source Projects on GitHub This Week

This article curates ten noteworthy open‑source projects—from a ready‑to‑use Linux distribution and AI knowledge‑graph infrastructure to peripheral managers, AI agent frameworks, model‑training tools, and ultra‑light tool‑calling models—detailing their core features, use cases, and GitHub links for developers to explore.

Understanding Linux Deadline Scheduler: Parameter Logic and Kernel Implementation

The article explains how the Linux Deadline real‑time scheduler works, detailing its three core parameters (runtime, period, deadline), the EDF algorithm, kernel data structures, CBS bandwidth control, task state transitions, common configuration pitfalls, and practical tuning and monitoring commands.

Beyond Interview Answers: Mastering TCP’s Three‑Way Handshake and Four‑Way Teardown

This article walks through TCP fundamentals, explains each step of the three‑way handshake and four‑way termination, examines kernel parameters, common connection‑state problems such as TIME_WAIT and CLOSE_WAIT, and provides practical commands and scripts for diagnosing and tuning TCP on Linux.

30 Essential Linux Ops Commands Every Engineer Should Know

This guide presents 30 of the most frequently used Linux commands for operations engineers, organized into seven categories and illustrated with real‑world scenarios, parameter examples, safety warnings, and step‑by‑step usage tips to help you manage files, monitor systems, handle processes, diagnose networks, control users, compress data, and manage services.

20 Must‑Change Linux Kernel Parameters for Production Environments

This article presents a practical checklist of 20 Linux kernel parameters—grouped by network, memory, process, and filesystem settings—explaining their default values, typical failure symptoms, step‑by‑step tuning commands, verification methods, and rollback procedures to ensure production systems such as web servers, databases, caches, and containers run without kernel‑level bottlenecks.

Why the ‘Ubuntu on Windows Is Hotter Than Native’ Claim Is Misread: Growth Rate vs User Count

A viral statement by Canonical’s VP that Ubuntu’s WSL user base will soon outpace native Ubuntu was widely misinterpreted as a total‑user‑count surge, when it actually refers to a faster growth rate, a nuance that reveals shifting enterprise developer trends and strategic implications for Linux adoption.

How to Perform a Complete Server Port Security Audit with nmap

This guide walks ops engineers through installing nmap, understanding its scan techniques, executing single‑port, common‑port, full‑range, and script‑based scans, analyzing results, and applying remediation steps such as firewall rules, service hardening, and regular scanning schedules to keep server exposure minimal.

Which Linux Compression Tool Is Best? Full Comparison of tar, gzip, and zip with Practical Guides

This comprehensive guide examines Linux compression and decompression, comparing tar, gzip, and zip in depth, covering algorithm fundamentals, performance benchmarks, practical command examples, automation scripts, security considerations, and best‑practice recommendations to help engineers choose the optimal tool for backup, deployment, and data transfer tasks.

Why Most Servers Run Linux: Historical, Technical, and Economic Reasons

The article compiles several Zhihu answers explaining why Linux dominates server deployments, covering early Windows‑IIS dominance, open‑source ecosystem effects, performance and cost advantages, licensing fees, container support, and the long‑term Matthew‑effect that cemented Linux’s position.

Linux 7.2 Released: Linus Torvalds Warns the ‘New Normal’ Demands Immediate Action

Linux kernel 7.2 arrives with cache‑aware scheduling for AMD EPYC and Intel Xeon CPUs, late DRM rollbacks, a quirky Zenaim Leverless game controller, deprecation of PCMCIA and AppleTalk, and work to run efficiently on Apple M3 Macs, all announced by Linus Torvalds as a "new normal" driven by AI‑assisted development.

Production Incident Troubleshooting Framework and Toolbox: Veteran Ops Engineer’s Real‑World Tips

A seasoned operations veteran shares a step‑by‑step incident‑response workflow, the SEAL troubleshooting methodology, essential monitoring and debugging tools, real‑world case studies, automated scripts, and best‑practice guidelines to help engineers quickly diagnose and resolve production outages.

Don’t Change Linux Page Size to 2 MB: How the “Huge Page” Trick Can Crash Your Service

The article explains that replacing Linux’s default 4 KB pages with 2 MB huge pages may reduce TLB misses but often degrades performance for typical micro‑service workloads, causing memory bloat, cache conflicts, and latency spikes, and demonstrates the issue with benchmark code and a step‑by‑step rollback guide.

Master Linux System Log Analysis to Quickly Troubleshoot Issues

This comprehensive guide walks junior to mid‑level system administrators through Linux log fundamentals, essential command‑line tools like grep, awk, sed and journalctl, and step‑by‑step troubleshooting scenarios for SSH, service failures, disk space, memory leaks, security incidents, and application logs, providing practical scripts and advanced techniques for effective log‑driven problem resolution.

Ladybird: A 100% Self‑Developed Browser Engine with Five Isolated Processes

This article examines Ladybird, an open‑source browser that breaks the Chromium/Gecko monopoly with a fully self‑written engine, a five‑process sandbox architecture, cross‑platform support for Linux, macOS and WSL2, and provides detailed compilation steps, security analysis, and suitability guidance for developers.

Cut page load from 5 s to 500 ms: 12 Nginx tuning parameters

The article explains that reducing page load from five seconds to 500 ms requires more than just tweaking a few Nginx directives, outlines a systematic workflow—baseline measurement, hypothesis, single‑parameter gray rollout, verification and rollback—and details twelve specific Nginx settings that can eliminate proven Web‑layer bottlenecks such as file‑descriptor limits, connection models, static‑file paths, compression and request buffering.

Boost Ops Efficiency: 10 Essential Linux Tools Every Engineer Should Use

This article presents a practical guide for system administrators and DevOps engineers, introducing ten high‑frequency Linux tools—htop, iotop, nethogs, ncdu, strace, lsof, tcpdump, netstat/ss, curl, and systemctl/journalctl—detailing their installation, core and advanced usage, real‑world case studies, and how to combine them to dramatically improve troubleshooting speed and overall operational efficiency.

How to Quickly Identify High‑CPU Processes on a Linux Server with a One‑Minute Command Checklist

This article walks through a systematic, three‑stage method—starting with a 60‑second global scan using uptime, top, vmstat and mpstat, then pinpointing the offending process and thread with pidstat, perf and strace, and finally classifying the root cause to apply the appropriate fix—so you can diagnose and resolve Linux CPU spikes without resorting to blind restarts.

A Panoramic Look at Linux Directory Structure: The Design Philosophy Behind the FHS Standard

The article explains how Linux’s single‑root filesystem, governed by the Filesystem Hierarchy Standard (FHS), resolves early Unix directory chaos through hierarchical organization, functional separation, predictability, and economic design, and details the responsibilities of each standard directory.

A Complete Walkthrough of Investigating High Server Load in Production

This article narrates a step‑by‑step investigation of a sudden CPU load spike on a 24‑core e‑commerce web server, revealing an I/O bottleneck caused by misconfigured log rotation and excessive debug logging, and outlines the diagnostic commands, root‑cause analysis, immediate remediation, and long‑term fixes.

Diagnosing Server Connectivity Issues with Ping, Telnet, Curl, and Traceroute

This guide explains how to break down the vague symptom “network unreachable” into layered checks—interface status, routing, ARP, DNS, TCP, TLS, and HTTP—using the four classic tools ping, telnet, curl, and traceroute, and provides concrete commands, analysis steps, and evidence‑gathering scripts for Linux servers and Kubernetes pods.

How Claude Code Enables Cross‑Session AI Chat via Summarized Messages

Claude Code now lets AI sessions on different terminals exchange concise, Claude‑generated summaries, supporting handoff detection, parallel worktree coordination, long‑running task status, and cross‑machine replies while preserving privacy and respecting permission controls.

Why Microsoft’s F* Language Powers Firefox, Linux Kernel, and Azure Security

F* is a proof‑oriented programming language developed by Microsoft Research, INRIA and the open‑source community that generates mathematically verified C code used in critical components such as Firefox’s TLS handshake, Linux’s WireGuard crypto, Azure packet parsing, and even blockchain smart contracts, offering zero‑day‑free security at the cost of higher proof‑writing effort.

Linux Kernel Sysctl Tuning Checklist – Proven Steps to Improve Performance

This article debunks the myth that simply copying a sysctl.conf yields a 30% boost, and presents a rigorous engineering loop—baseline measurement, hypothesis formulation, gray‑scale changes, observation of side effects, and rollback—along with detailed scripts, metrics, and per‑parameter guidance for memory, network, file handles, and more.

How to Diagnose a 100% CPU Spike in 3 Minutes: From Symptom to Root Cause

When a production service shows 100% CPU usage, this guide walks you through a rapid three‑minute workflow—identifying the affected scope, distinguishing user, system, iowait, steal and softirq metrics, and using Linux, systemd, Docker/Kubernetes and language‑specific tools to pinpoint the offending process, thread, or system call before taking corrective actions such as throttling, scaling, or rolling back.

A Miswritten iptables Rule That Almost Made Me Quit

The article recounts a real‑world iptables misconfiguration that cut off SSH access for 47 minutes, walks through the incident timeline, root‑cause analysis, and detailed remediation steps, and then expands into a comprehensive guide on iptables fundamentals, common pitfalls, best‑practice design, troubleshooting commands, automation, monitoring, and migration to nftables.

The Nameless Engineers Who Write Decades‑Long Error‑Free Code Powering the Physical World

A handful of largely unknown developers create ultra‑reliable embedded software—such as μC/OS, FreeRTOS, MQTT, BusyBox, SQLite and Linux subsystems—that runs in aircraft, medical devices, IoT gadgets and industrial equipment, and they achieve this through extreme size constraints, deterministic timing, exhaustive testing, mandatory code reviews and a commitment to long‑term maintenance.

How to Choose Between LVS, Nginx, and HAProxy: A Practical Performance Comparison

This article presents a systematic, non‑prescriptive methodology for evaluating LVS, Nginx, and HAProxy—including traffic‑path analysis, environment preparation, identical backend setup, scripted load tests, multi‑stage measurement (warm‑up, steady‑state, fault injection, recovery), and decision criteria such as layer requirements, health‑check semantics, connection limits, observability, and operational risk.

Linux Triple Threat: Practical grep, sed, and awk Tips to Double Your Efficiency

This guide explains why the three classic Unix tools—grep, sed, and awk—are indispensable for sysadmins, compares their strengths, shows real‑world examples for log analysis, configuration management, and large‑file processing, and provides performance‑tuned techniques that can cut task times from minutes to seconds.

Cut Page Load from 5 s to 500 ms: 12 Essential Nginx Performance Tweaks

The article explains how to reduce overall page latency from five seconds to half a second by systematically measuring, hypothesizing, and tuning twelve Nginx directives—such as worker processes, file‑descriptor limits, keep‑alive settings, and gzip—while backing up configurations, performing gray‑scale rollouts, and validating results with curl and log analysis.

Secure Redis Upgrade Guide: Deploy Without Root Using a Regular User and Patch Critical Vulnerabilities

Most online Redis tutorials compile and run as root, creating serious security risks, so this guide walks through a complete, non‑root deployment and upgrade process—including backup, source compilation with a private prefix, configuration reuse, environment setup, post‑upgrade hardening, and a one‑click rollback—to safely patch high‑severity vulnerabilities on common Linux distributions.

Tuning C‑states, P‑states and CPU Frequency for Low‑Latency High‑Frequency Trading

This article explains how to reduce latency in high‑frequency trading by understanding C‑state sleep depths and P‑state frequency scaling, identifying which cores are affected, checking OS control over power management, and applying kernel parameters, PM‑QoS limits, and governor settings, with concrete commands, examples, and AWS instance considerations.

How to Prevent Linux Privilege Escalation? Critical Risks Every Junior Ops Should Know

This article explains the most common Linux privilege‑escalation vectors—including unsafe SUID binaries, mis‑configured sudo, vulnerable cron jobs, password and SSH‑key leaks, kernel and software bugs, container escape, and file‑permission flaws—and provides concrete hardening steps and a quick‑check script for ops engineers.

Master the 100 Most Essential Linux Commands for File Management, Networking, and Troubleshooting

This comprehensive guide collects the 100 most frequently used Linux commands, organized into ten practical modules—from basic file and directory operations to advanced network troubleshooting—each illustrated with common options, real‑world examples, and safety tips, making it a permanent reference for sysadmins and developers alike.

Billions of Devices Depend on His Linux Code—Who Will Take Over When He Retires?

Andrew Morton, the 66‑year‑old maintainer of Linux's memory‑management subsystem that powers billions of devices, announced his retirement, leaving the community to confront a critical bus‑factor problem and the daunting task of finding a successor for one of the kernel's most complex components.

Why System Calls Can Kill Performance and How to Cut Them

The article explains how frequent Linux system calls cause costly context switches, kernel checks, and cache/TLB invalidations, presents benchmark code that quantifies the overhead of getpid, open, read, and demonstrates batch I/O, caching, and algorithmic techniques to dramatically reduce those calls and boost high‑performance C++ network services.

Comprehensive Filebeat Tuning Parameters to Reduce High Resource Usage

This guide walks through a systematic, evidence‑driven process for diagnosing and lowering Filebeat’s excessive CPU, memory, and file‑handle consumption—including version checks, process sampling, retry and queue analysis, registry handling, input configuration, parsing rules, queue sizing, output tuning, monitoring, and safe rollback procedures.

When Linux CPU spikes to 99%, these 6 commands saved me three times

If a Linux server shows 99% CPU usage, don’t restart immediately; instead use a systematic chain of six diagnostic commands—uptime, top, ps, pidstat, mpstat, and sar—combined with cgroup, thread, and log analysis to pinpoint the true cause, whether user‑space computation, I/O wait, soft‑interrupts, virtualization steal, or container limits, and then apply targeted remediation.

What to Do When a Server Disk Is Full? A Complete Linux Disk Troubleshooting Guide

This article explains why disk‑full issues cripple Linux servers, outlines the concepts of filesystem, LVM and inode space, and provides a step‑by‑step, layered method using df, du, find, lsof and logrotate to locate and safely free space, handle deleted‑but‑open files, clean logs, manage databases, temporary caches, Docker resources, and LVM volumes, and finally set up monitoring and preventive measures.

Eliminate Select’s High CPU Usage: A Step‑by‑Step Epoll Source Dive in Pure C

The article walks developers through the root causes of high CPU consumption when using select/poll, explains why epoll solves these bottlenecks, and provides a complete, pure‑C implementation that covers socket setup, epoll creation, registration, event loops, level‑trigger vs edge‑trigger modes, and performance comparisons.

Fix Server Time Drift with Chrony: A Step‑by‑Step Linux Synchronization Guide

This guide explains why inconsistent server clocks cause log, authentication, and scheduling issues, then walks through diagnosing current time, installing and configuring Chrony on various Linux distributions, securing firewall rules, verifying synchronization, troubleshooting offsets, and implementing rollback and health‑check automation.

How to Safely Distribute Traffic with Nginx upstream Load Balancing

This guide walks through verifying the Nginx environment, configuring a reliable upstream block, setting proper proxy headers and timeouts, validating backend health, handling failures, exposing observability, and performing controlled rollouts to ensure traffic is correctly balanced without service disruption.

How to Achieve Real‑Time Performance with Linux in Embedded Systems

The article explains why Linux can be used for real‑time embedded applications, describes the misconception that Linux is inherently non‑real‑time, and details four practical techniques—PREEMPT_RT patch, CPU isolation, real‑time scheduling policies, and memory‑management optimizations—plus a brief discussion of dual‑kernel solutions for hard‑real‑time needs.

Disk Full but du Shows Less? Hidden Deleted Files Held Open by Processes

When df reports 98% disk usage but du accounts for only 50%, the missing space is typically held by a process that deleted a file but kept its file descriptor open; this article demonstrates how to locate the offending process with lsof, reclaim space instantly via /proc/pid/fd, and prevent recurrence by truncating logs instead of removing them.

Hands‑On nvidia‑smi Guide: Diagnosing GPU Utilization and Memory Usage Anomalies

This article provides a step‑by‑step, Linux‑focused workflow for recording driver and GPU versions, interpreting utilization versus memory metrics, locating memory‑consuming processes, handling container and Kubernetes mappings, checking temperature, power, ECC, MIG, driver health, OOM conditions, and setting up reliable monitoring and alert thresholds for data‑center GPUs.

Why TCP BDP Is the Hidden Killer of Network Latency

The article explains the concept of Bandwidth‑Delay Product (BDP), why an undersized TCP window throttles high‑bandwidth links, and provides step‑by‑step diagnostics, scripts, and practical Linux tuning methods—including window scaling, congestion‑control selection, and real‑world case studies—to eliminate BDP‑related performance bottlenecks.

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