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.

Do You Really Understand pthread Internals? Master Linux Multithreading Basics

This article dives deep into Linux pthread fundamentals, covering process‑vs‑thread concepts, the POSIX API, kernel implementation via the clone syscall, thread lifecycle, synchronization primitives, common pitfalls such as deadlocks, stack overflows and thread leaks, and provides practical debugging and mitigation techniques with real code examples.

AutoPentestX: An Automated Linux Penetration Testing Toolkit for Faster Red‑Team Assessments

AutoPentestX is an open‑source, Linux‑focused automated penetration testing framework that integrates tools like Nmap, Nikto, SQLMap and Metasploit into a single command workflow, stores results in SQLite, generates detailed PDF reports, and includes installation, usage instructions, legal compliance notes, and future development plans.

Xubuntu Download Page Hijacked with Crypto‑Stealing Malware

A security researcher discovered that the official Xubuntu download page was compromised, delivering a ZIP containing a tos.txt file with a bogus 2026 copyright and a malicious Windows executable that functions as a crypto‑clipper, prompting Xubuntu to temporarily disable the download site while investigating the breach.

Deep Dive into Server Performance: Analyzing CPU, Memory, Disk, and Network Bottlenecks

This article explains how to identify and troubleshoot the four main resource bottlenecks—CPU, memory, disk I/O, and network—by detailing Linux internals, key metrics, practical command examples, real‑world case studies, and a step‑by‑step decision tree for accurate diagnosis and tuning.

Step‑by‑Step Debugging of a Slow Website: From Nginx to the Database

When a website’s response time jumped from 200 ms to over 10 seconds, this guide walks through a layered investigation—from confirming the scope, checking Nginx and upstream health, analyzing application logs, inspecting MySQL processes, slow queries, and locks, to examining server CPU, memory, disk I/O, and network—providing concrete commands, expected outputs, and root‑cause patterns for effective troubleshooting and preventive monitoring.

Mastering Linux Shell Scripting: A Complete Hands‑On Guide from Basics to Pro

This article walks readers through the fundamentals of Linux shell scripting—explaining what a script is, why automation matters, core syntax, variables, conditionals, loops, functions, real‑world examples, debugging techniques, and best‑practice recommendations—so they can write reliable Bash scripts from scratch and advance to more complex automation tasks.

100‑Slide PPT That Fully Explains Common Linux Commands

This article shares a 100‑page slide deck that systematically introduces and explains the most frequently used Linux commands, helping readers quickly grasp essential command‑line operations; it covers navigation, file manipulation, process control, permission management, networking utilities, and scripting basics, each illustrated with concise examples and usage tips.

Essential Linux Commands Every Sysadmin Should Know

This guide compiles the most frequently used Linux commands for system administrators, covering navigation, file manipulation, searching, permission handling, text processing, archiving, system control, and process management, complete with practical examples and option details to boost daily operational efficiency.

How to Diagnose Slow Server Responses: Full‑Scope CPU, Memory, Disk & Network Analysis

This guide walks Linux operators through a systematic, four‑dimensional investigation of server slowdown—covering CPU, memory, disk I/O, and network—using concrete commands, diagnostic scripts, real‑world scenarios, and step‑by‑step remediation strategies to pinpoint and resolve performance bottlenecks.

2026 Linux Production Ops Command Guide: From Beginner to Expert

This comprehensive guide collects the most essential Linux commands for 2026 production environments, covering system information, service management, file operations, process and network monitoring, user and security administration, system maintenance, advanced shell tricks, and best‑practice checklists for services like MySQL and Redis.

Mastering Linux Kernel Threads: Core Mechanisms and Scheduling

This article explains Linux kernel threads from basic concepts to deep internals, covering their data structures, creation, execution flow, scheduling strategies, context‑switch overhead, synchronization primitives, interrupt handling, and a practical kswapd memory‑reclaim case study, providing concrete code examples and step‑by‑step analysis.

20 Essential Server Hardening Steps Before Launching a New Machine

This guide provides a detailed 20‑item checklist for Linux server hardening—covering snapshots, account management, SSH key authentication, password policies, firewall rules, service reduction, kernel tweaks, logging, and verification scripts—to ensure a new production server is secure before it goes live.

Why China Is Mandating Linux for State‑Owned Enterprises: A Technical Analysis

The article explains that China’s large‑scale migration from Windows to Linux in state‑owned and central enterprises is driven by security independence, massive licensing cost savings, ecosystem development, and strategic preparation for potential sanctions, offering both challenges and new opportunities for the tech workforce.

Linux Kernel’s ‘Copy Fail’ CVE‑2026‑31431: A 732‑Byte Python Script Grants Root in One Step

A newly disclosed Linux kernel vulnerability (CVE‑2026‑31431, dubbed “Copy Fail”) allows an unprivileged user to execute a 732‑byte Python script that writes four controllable bytes into the page cache, directly modifying /usr/bin/su to obtain root, affecting all kernels from 2017 to the patch release and posing severe risks such as container escape and cloud‑tenant isolation breaches.

Step‑by‑Step Investigation of a High‑Load Production Server

During a mid‑year promotion an e‑commerce platform experienced a sudden spike in load average and response latency; the article walks through a systematic, command‑driven investigation that identifies an I/O bottleneck caused by mis‑configured log rotation and excessive debug logging, and presents immediate and long‑term remediation steps.

How to Harden SSH Securely Without Locking Yourself Out

This guide explains why the default SSH configuration is vulnerable, walks through protocol basics, key generation, server hardening settings, step‑by‑step procedures to avoid being locked out, key management best practices, troubleshooting tips, and provides a complete hardening script for Linux systems.

A Misplaced iptables Rule Nearly Took Down Our Production – Full Incident Postmortem and Best‑Practice Guide

The article recounts a real‑world iptables misconfiguration that cut off SSH access and caused a 47‑minute outage, then walks through the root‑cause analysis, step‑by‑step remediation, common pitfalls, rule‑ordering nuances, monitoring, automation, and migration to nftables, offering a comprehensive firewall best‑practice handbook.

Automated Linux System Inspection Script for Comprehensive Health Checks

This article provides a Bash script that automatically gathers Linux system information—including OS details, uptime, CPU and memory usage, disk utilization with tiered alerts, network interfaces, top memory‑consuming processes, key service status, pending updates, recent error logs, load average, TCP connections, and zombie processes—and shows how to schedule it with cron for daily reporting.

Why Is China Replacing Enterprise PCs with Linux? A Technical Perspective

China’s push to replace Windows PCs in state‑owned enterprises with Linux is driven by security concerns after the Huawei sanctions, massive software licensing costs, the need to build a domestic ecosystem, and the strategic goal of achieving autonomous, controllable IT infrastructure.

Grafana + InfluxDB: Build CPU Monitoring Dashboard in 10 Minutes (Template ID 13978)

This tutorial guides you through installing Grafana 8.5.2 on Linux, connecting it to InfluxDB as a data source, and importing a pre-built dashboard template (ID 13978) to visualize CPU usage trends, peaks, and valleys without writing queries, plus troubleshooting tips for common connection issues.

How Servers Handle Millions of Concurrent Connections Despite the 65,535 TCP Port Limit

The article explains that the 65,535 TCP port limit applies only to client-side temporary ports, while server concurrency is constrained by memory, file descriptors, and CPU, and outlines practical optimization techniques such as load balancing, epoll, kernel tuning, and connection reuse to achieve million‑scale traffic.

How a Spy Infiltrated XZ Utils: The 849‑Day Supply‑Chain Attack on Billions of Linux Devices

An in‑depth investigation reveals how a lone maintainer of the ubiquitous XZ compression library was psychologically pressured, infiltrated by a fake contributor, and ultimately used to plant a CVE‑2024‑3094 backdoor that threatened billions of Linux servers worldwide.

How a Graduate Student Uncovered and Fixed a 20‑Year‑Old E16 Window‑Manager Bug

A graduate student named Kamila, while preparing LaTeX slides on a Linux desktop, repeatedly crashed the Enlightenment E16 window manager, traced the freeze to an unbounded title‑truncation loop that had lingered since 2006, and ultimately patched the bug, highlighting the enduring value of open‑source vigilance.

Unlocking Linux VFS: How the Virtual File System Powers All File Operations

This article provides a deep technical walkthrough of Linux's Virtual File System (VFS), explaining its design goals, core data structures, caching mechanisms, and step‑by‑step file operation flows—including mount, open, read, and write—while illustrating each concept with concrete code examples and real‑world scenarios.

Can Linux Replace Windows? Exploring Deepin’s Desktop, Development Tools, and Real‑World Benefits

This article examines whether Linux, specifically the Deepin distribution, can serve as a practical replacement for Windows by showcasing its graphical desktop, daily development environment, communication apps, Android compatibility, performance advantages, command‑line efficiency, and the freedom offered by an open‑source operating system.

Linux File Compression & Backup: Complete Guide to tar, gzip, bzip2, xz, zip, rsync, and scp

This tutorial walks through essential Linux commands for archiving, compressing, and transferring files—including tar, gzip, bzip2, xz, zip, rsync, and scp—explaining their options, performance trade‑offs, and practical usage scenarios such as daily backups, cross‑platform sharing, and incremental synchronization.

Unlock Linux Efficiency: Master History and Tab Completion

This guide shows how to boost Linux command‑line productivity by configuring history timestamps, expanding history size, using reverse‑search (Ctrl+R), synchronizing history across multiple terminals, and leveraging bash‑completion for command arguments, package names, and Docker containers, plus creating custom completion scripts.

Why Linux (Deepin) Can Replace Windows: A Real‑World User Experience

The author shares a two‑year experience with the Deepin Linux distribution, highlighting its polished graphical desktop, extensive development tool support, seamless communication apps, ability to run Android apps via xDroid, and numerous advantages such as efficient package management, command‑line power, low resource usage, and freedom compared to Windows.

Why Sharing a Root Account Is a Critical Security Risk and How to Replace It

The article analyzes the severe security, audit, and operational problems caused by using a shared root account on Linux servers, illustrates real incidents, and provides detailed migration steps, sudo‑based alternatives, audit‑d configurations, and bastion‑host solutions to enforce least‑privilege access.

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