Posts

Showing posts with the label Linux Commands

Windows Equivalents of Linux Commands: 9 Essential Mistakes

Image
Looking up Windows equivalents of Linux commands gives two answers for almost everything: the old Command Prompt command and the PowerShell cmdlet. They behave differently, and so do PowerShell's shortcuts depending on the system you run it on. This guide maps the common Linux commands to both. The Command Prompt side is taken from Microsoft's Windows commands reference . The PowerShell side I ran myself in PowerShell 7.7.0, the current release, on Debian 13, so the outputs are real but come from PowerShell on Linux, not from a Windows machine. Real PowerShell 7.7.0 output: aliases, text search and a safe delete preview. Contents Windows equivalents at a glance The ls equivalent in Windows, and why it differs on Linux grep: findstr vs Select-String tail, touch and rm ps, top and which man and sudo Picking the right Windows equivalents Windows equivalents at a glance Linux Command Prompt (cmd.exe) PowerShell cmdlet Built-in alias (all platforms) ls dir Get-ChildItem di...

CentOS NVIDIA AI Factories: 7 Ways the AIE SIG Changes Everything

Image
Look, I've been deploying Linux server clusters since the late 90s, and I've seen my fair share of hyped-up enterprise architectures. But the recent push towards CentOS NVIDIA AI Factories is genuinely different. When Red Hat shifted focus to CentOS Stream, half the sysadmin community threw their keyboards in frustration. Yet, this exact upstream pivot is what makes the new Accelerated Infrastructure Enablement (AIE) SIG possible, allowing us to build CentOS NVIDIA AI Factories faster than ever before. Why CentOS NVIDIA AI Factories Solve the Enterprise ML Nightmare If you have ever tried to maintain a bare-metal machine learning cluster, you know the pain. Kernel updates break the NVIDIA drivers. The CUDA toolkit conflicts with the container runtime. It is a never-ending cycle of dependency hell. The concept of CentOS NVIDIA AI Factories is designed to completely obliterate this workflow friction. Through the new AIE SIG, the CentOS community is directly packagi...

Linux Sandboxing in Python: Awesome 1-File Solution

Image
Introduction: I have been breaking and securing systems for three decades, and let me tell you, Linux sandboxing is usually a complete nightmare. You want to isolate a simple script, but suddenly you are knee-deep in Docker daemon configurations, complex YAML files, and networking bridges that break your host machine. It is exhausting. It is bloated. And honestly, for running a quick untrusted snippet, it is overkill. What if I told you that you could achieve robust process isolation with a single script? No daemons. No bloated container images. Today, we are looking at an incredibly elegant solution for Linux sandboxing built entirely in Python. The Painful Reality of Modern Linux Sandboxing Back in the late 90s, we just used a chroot jail and prayed the attacker didn't know how to break out. Things evolved, thankfully. We got namespaces and cgroups, which form the backbone of modern containerization. But the tooling around these kernel features became massive. ...

Ageless Linux: 7 Reasons It's the Ultimate OS (2026)

Image
Introduction: I’ll be blunt; Ageless Linux is the wake-up call the tech industry desperately needs right now. For thirty years, I've watched operating systems evolve from clunky text prompts into hyper-minimalist, confusing puzzles. We are told that modern design is "intuitive." That is a lie. The truth? Modern UI is designed by twenty-somethings, for twenty-somethings. If you don't have perfect 20/20 vision and the reflexes of a gamer, you're left behind. That is exactly why I decided to take a hard look at software built for humans of indeterminate age. It’s time we stop apologizing for needing larger fonts and clearer menus. The Philosophy Behind Ageless Linux So, what exactly makes an operating system "ageless"? It boils down to respecting the user's time, cognitive load, and physical needs. I remember installing early distributions in the late 90s; it took days and a pile of floppy disks. Now, installation is easy, but da...

Linux MGLRU: Massive 30% MongoDB Boost & 100% HDD Gains

Image
Introduction: I have spent three decades watching servers completely choke on bad memory management, but the new Linux MGLRU is finally changing the game. Back in the early days of sysadmin work, a sudden spike in database queries meant your swap file was going to catch fire. We spent hours tweaking sysctl parameters just to keep the out-of-memory (OOM) killer at bay. Today, you don't need a PhD in kernel tuning to see massive performance gains on your database servers. Thanks to recent patches, systems are seeing a 30% throughput increase for MongoDB workloads. Even crazier? Machines still running on older spinning hard drives (HDDs) are seeing improvements north of 100%. Let's break down exactly why this matters for your infrastructure. Why Linux MGLRU Matters Right Now For the uninitiated, MGLRU stands for Multi-Generational Least Recently Used. It is a complete overhaul of how the Linux kernel decides which pages of memory to keep in RAM and which to pus...

Linux Kernel for PostgreSQL: 5 Easy io_uring Mistakes

Image
Articles about the Linux kernel for PostgreSQL often promise big speed-ups from io_uring and eBPF. The earlier version of this post did the same, with a "conceptual" eBPF snippet that is not real kernel code and without a single command run. This rewrite separates what you can use today from what is still a proposal, and tests the part that exists: PostgreSQL 18 with io_method = io_uring . It includes two errors with the Linux kernel for PostgreSQL that cost me time, and a small benchmark that does not show the gain the old post claimed. Lab: Fedora host with kernel 7.2.15 and kernel.io_uring_disabled = 0 , rootless podman 5.8, image postgres:18 (PostgreSQL 18.6, Debian build). SELinux was in enforcing mode on the host. The facts about proposed kernel patches come from the blog post "What's new in Linux kernel... for PostgreSQL" by Dmitry Dolgov (3 Feb 2026) and the PostgreSQL 18 documentation, not from my own testing. Contents What exists in the Linux ker...

Linux Heterogeneous Memory Management: Avoid 7 Mistakes

Image
Linux heterogeneous memory management (HMM) is the kernel code that lets a device such as a GPU share a process address space with the CPU and use its own memory for that process's data. This article is based on the official kernel HMM documentation (the page for kernel 7.4.0-rc1, read on 2 November 2026), not on a hands-on test: HMM is a driver API, and using it needs a device driver and suitable hardware. The old version of this post described PCIe ATS and PRI as the core of HMM; the kernel document does not describe HMM that way, so that part is gone. Contents What problem Linux heterogeneous memory management solves The two features of Linux heterogeneous memory management Mirroring in Linux heterogeneous memory management Flags: ask for exactly the access you need Device private memory in Linux heterogeneous memory management Seven Linux heterogeneous memory management mistakes to avoid Exclusive access for device atomics Where to go next FAQ What problem Linux heterogeneo...

sudo-rs Password Feedback: 7 Reasons This Shocking Change Matters

Image
Introduction: I still remember my very first time firing up a UNIX terminal back in 1995. I typed a command requiring root, hit enter, and began typing my password. Nothing happened. No dots, no stars, no movement. I panicked, assuming my keyboard had died, and slammed the Enter key. Boom. Authentication failure. That was my brutal introduction to the silent, blind password prompt. It was a rite of passage for every sysadmin. But today, the game fundamentally shifts. The introduction of sudo-rs password feedback by default is actively breaking a 40-year-old tradition. Old-school admins are currently hyperventilating on forums. Newer developers, however, are throwing a massive party. So, why does this matter? Let's break down exactly what this means for your workflow, your security, and the future of Linux memory safety. The History Behind the Blind Password Prompt To understand why sudo-rs password feedback is such a massive deal, we have to look backward. Why were pass...

Linux Graphics Drivers Stack: 5 Layers and Common Mistakes

Image
The Linux graphics stack has two halves. In the kernel, a DRM driver talks to the GPU, sets display modes (KMS) and manages GPU memory. In user space, Mesa (or a vendor driver) turns OpenGL, Vulkan and video API calls into commands for that kernel driver. When something breaks, the first job is finding out which half and which driver is actually in use. This post walks through both halves using the Mesa and kernel documentation (read 20 November 2026) and a lab on Debian 13 with Mesa 25.0.7, run in a container with no GPU attached so that every fallback is visible. Contents The kernel half of Linux graphics: DRM and KMS The user-space half of Linux graphics: Mesa drivers and loaders See which Linux graphics driver is really in use Debugging the Linux graphics loaders Linux graphics vendor drivers in 2026 Where the Linux graphics stack matters day to day FAQ Why does my Linux graphics renderer say llvmpipe? What is the difference between DRM and KMS? The kernel half of Linux graphics...

Mount Proton Drive on Linux: rclone systemd Setup Guide

Image
For Linux power users and DevOps professionals, the lack of an official Proton Drive client is a significant friction point. While the web interface handles basic uploads, integrating encrypted cloud storage into your file system for seamless I/O requires a more robust solution. The definitive way to mount Proton Drive on Linux is by leveraging the power of rclone combined with systemd for persistence. This guide skips the basics. We assume you are comfortable with the CLI and focus on the architectural requirements, performance tuning via VFS caching, and creating a production-grade systemd service to manage your mount. Prerequisites and Architecture Before attempting to mount Proton Drive, ensure your environment meets the strict version requirements. Proton Drive support was added to rclone relatively recently. Rclone v1.63 or higher: Most package managers (apt, dnf) ship outdated versions. You must install from the official script or binary. FUSE (Filesyst...