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.
To compare two Linux config files, run diff -u yesterday.conf today.conf with the older copy first. A line starting with a single minus sign came from the older file. A line starting with a single plus sign came from the newer one. Read the pair together to see what changed. Suppose a scheduled job used … Read more
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.
Use journalctl to select the previous Linux boot, compare kernel and service events, diagnose missing logs, and verify that a test entry survives reboot. Includes a worked timeline and an incident template.
Use this security.txt guide to publish an RFC 9116 file, verify each HTTPS host and record whether a test report reaches the responsible team.