Skip to content

Posts

Linux Basics: Reproduce a Command with a Small Explicit Environment

Use GNU env -i to run a child shell with explicit settings while proving the parent environment stays unchanged.

Read more →

October 30, 2026

Linux Basics: Keep Earlier File Versions with GNU cp Backups

Preserve overwritten destinations with numbered GNU cp backups and inspect which version each backup contains.

Read more →

October 30, 2026

Linux Basics: Distinguish Bytes, Characters, and Width with GNU wc

Measure UTF-8 text with wc -c, -m, -l, and -L, including tabs and a final line without a newline.

Read more →

October 30, 2026

Linux Basics: Copy Reference Timestamps with GNU touch

Use touch -r and -m to copy a reference modification time while preserving a file’s contents and access time.

Read more →

October 30, 2026

Linux Basics: Convert Text Encodings Without Accepting Partial Output

Convert a known Latin-1 fixture to UTF-8 with iconv and publish the output only when conversion succeeds.

Read more →

October 30, 2026

JavaScript Basics: Read and Update MIME Parameters

Read and edit MIME type parameters without breaking quoted values containing semicolons.

Read more →

October 30, 2026

JavaScript Basics: Parse Configuration Text Before Applying It

Parse dotenv text without mutating process.env, then validate ports and explicitly convert string settings.

Read more →

October 30, 2026

JavaScript Basics: Drain Child Output Before Reporting Completion

Consume child stdout and stderr concurrently with spawn and check completion and nonzero exit status.

Read more →

October 30, 2026

JavaScript Basics: Distinguish a Symbolic Link from Its Target

Compare stat, lstat, and readlink on a symbolic link before and after its target disappears.

Read more →

October 30, 2026

JavaScript Basics: Decode UTF-8 Across Buffer Boundaries

Preserve UTF-8 characters across buffer boundaries with StringDecoder and test incomplete final input.

Read more →

October 30, 2026