Linux comm Command: Find Added, Removed, and Shared Lines
Compare two Linux inventories with comm. Find added, removed, and shared lines, decide how to handle duplicates, and diagnose unexpected results.
Practical cybersecurity guides, labs & compliance
Compare two Linux inventories with comm. Find added, removed, and shared lines, decide how to handle duplicates, and diagnose unexpected results.
Sort numbers and numeric columns in Linux, preserve the order of tied rows, and check the result with a small reproducible example.
Use a five-line example to see what uniq counts, find duplicates anywhere in a file, and remove repeats while keeping the original order.
See why wc -l reports one fewer line than your editor. Reproduce the difference, inspect the final byte, and choose the right count for a text file.
A Linux bug report is easier to act on when it includes one command that fails and one that succeeds. Here the same Python script prints sample inside its project directory and raises FileNotFoundError one directory higher. Copy the seven-field template for your own issue, or jump to the completed ticket or run the commands. … Read more
Diagnose a systemd timer that is not running. Check the next trigger, calendar and time zone, service logs, missed runs, and user timers with copyable commands.
Linux disk full but du shows less space? Use seven read-only checks to isolate the mount, inode usage, deleted files, journal growth, or snapshots.
Explain expected and observed behavior, identify one assumption, and choose a test that distinguishes possible causes. Follow five debugging steps, a worked example, and an editable experiment card for your own notes.
Retest a specific vulnerability after an authorized change. Five checks cover deployment, comparable conditions, secure behavior and closure evidence. Includes a worked inconclusive result and an editable record for remediation, mitigation or unresolved status.
Build an Nmap command you can explain: targets, discovery, ports, service probes and saved output. Includes a flag reference, isolated-lab command ladder and five review questions before rerunning a scan.