Tags

Linux

Jun 28, 2023 Standalone 50 min read

LAMP Stack on Alibaba Cloud ECS: From Fresh Instance to Production-Ready Web Server

Set up a LAMP stack (Linux, Apache, MySQL, PHP) on Alibaba Cloud ECS. Covers security groups, service installation, Discuz deployment, source compilation, hardening and three-tier scale-out.

Jun 16, 2023 Docker and Containers 28 min read

Docker and Containers (1): Why Containers — The Problem VMs Didn't Solve

Containers solve the 'works on my machine' problem that VMs made expensive. Learn what containers actually are, how they differ from VMs, and run your first one.

Apr 7, 2022 Standalone 40 min read

Operating System Fundamentals: A Deep Dive

Walk through processes, virtual memory, file systems, the I/O stack, system calls and schedulers, with the actual numbers and the commands you can verify each claim with on a Linux box.

Apr 2, 2022 Linux 28 min read

Linux (9): Vim Essentials

Learn Vim by understanding its grammar -- modes, operators + motions, text objects -- not by memorizing shortcuts. A practical, beginner-friendly guide with a one-week practice plan.

Apr 2, 2022 Linux 42 min read

Linux (8): Pipelines and File Operations — Composing Tools into Data Flows

A deep walk-through of the Unix pipeline model: stdin/stdout/stderr and file descriptors, every common redirection form, the grep/awk/sed/cut/sort/uniq/xargs toolchain, named pipes, and process substitution -- with …

Mar 20, 2022 Linux 38 min read

Linux (7): Process and Resource Management: From `top` to cgroups

How processes are born and die on Linux: the fork/exec model, the state machine that ps and top print in the STAT column, the resource axes (CPU, memory, disk I/O, network) that actually constrain a server, the signals …

Mar 7, 2022 Linux 38 min read

Linux (6): Service Management — systemd, systemctl, and journald

A working model of systemd: PID 1, units and targets, the service lifecycle, writing your own unit files, journalctl filtering, timers as a cron replacement, and a disciplined troubleshooting workflow.

Feb 22, 2022 Linux 30 min read

Linux (5): User Management — Users, Groups, sudo, and Security

A working mental model for Linux accounts: how /etc/passwd and /etc/shadow fit together, when to use a primary group versus a supplementary one, how sudo actually decides, and the full lifecycle of useradd / usermod / …

Feb 9, 2022 Linux 46 min read

Linux (4): Package Management — apt, dnf, pacman, and Building from Source

Master package management across distributions: dpkg/apt for Debian/Ubuntu, rpm/yum/dnf for RHEL/CentOS, pacman for Arch, dependency troubleshooting, version locking, mirrors, and compiling from source.

Jan 27, 2022 Linux 36 min read

Linux (3): Disk Management — Partitions, Filesystems, LVM, and the Mount Stack

End-to-end disk workflow on Linux: identify block devices with lsblk, partition with GPT, format with ext4 / xfs, mount persistently through /etc/fstab, expand capacity online with LVM, and debug the classic 'disk full …

Jan 14, 2022 Linux 30 min read

Linux (2): File Permissions — rwx, chmod, chown, and Beyond

Master the Linux permission model: rwx semantics on files vs directories, numeric and symbolic notation, chmod/chown usage, umask defaults, SUID/SGID/Sticky bit, and ACLs.

Jan 1, 2022 Linux 38 min read

Linux (1): Basics — Core Concepts and Essential Commands

Your entry guide to Linux: the multi-user permission model, the FHS directory tree, distribution lineages, and the command-line muscle memory you need before any deeper topic makes sense.