Copy a remote directory with scp—and prove the copy is complete
Resolve the remote path first, copy recursively without flattening the wrong level, account for symlinks and metadata, and verify the result before deleting anything.
Read note →Tutorials, operational lessons and verified industry developments from the point where infrastructure, security and software meet.
Resolve the remote path first, copy recursively without flattening the wrong level, account for symlinks and metadata, and verify the result before deleting anything.
Read note →There are several ways to get a plausible answer here. This guide focuses on the path that preserves evidence and minimizes accidental change.Our specific objective is rotate logs without losing evidence. Dr…
Read note →Turn a familiar directory check into a reliable operational pattern: quote paths, distinguish links, create atomically, validate ownership, and test failure paths.
Read note →The fastest safe route here begins with narrowing the question. We will collect evidence first and change nothing until the output points somewhere specific.Our specific objective is build a safer ssh baseli…
Read note →Before touching configuration, we will turn the symptom into a precise question and collect a baseline that can be compared after the work.Our specific objective is audit sudo access on a production host. Va…
Read note →The useful outcome is not a green terminal. It is a clear explanation of what was checked, what the output means and what should happen next.Our specific objective is recover safely from a full inode table. …
Read note →Stop confusing the caller’s working directory with the script’s location; handle spaces, sourced files, relative symlinks and physical paths deliberately.
Read note →When this problem appears in production, urgency encourages guessing. The procedure below deliberately slows the first minute down so the next thirty are useful.Our specific objective is schedule reliable wo…
Read note →This is a practical operator’s guide: establish context, run the smallest useful check, interpret it correctly, and leave a clean recovery path.Our specific objective is find disk pressure before an outage. …
Read note →A production-safe way to locate configuration values with grep: choose the right scope, control recursion, skip noise and verify that the matched file is actually active.
Read note →Treat this task as a short investigation rather than a magic command. The command matters, but the context around it is what makes the result trustworthy.Our specific objective is verify listening services a…
Read note →A good diagnosis should be repeatable by another engineer. We will record the environment, run a bounded test and verify the result from the service boundary.Our specific objective is trace a slow linux boot…
Read note →