Preserving Bash History in Multiple Terminal Windows
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
All the articles with the tag "linux".
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
Proxychains-ng, Tor, and VPN+Tor combos tested honestly: which setups actually anonymize traffic and which are security theater you should stop trusting.
Rename files to remove spaces and special characters using bash — rename, tr, and parameter expansion patterns for bulk file cleanup.
Repair and optimize all MySQL databases at once with mysqlcheck — a one-liner that runs on every table without logging into MySQL.
Restic, Borg, and Kopia all deduplicate and encrypt — but differ on backends, compression, and UI. Pick the right backup tool for your Linux home lab.
Set, verify, and sync your timezone in Ubuntu using timedatectl — one command to fix the clock on a newly provisioned server.
socat wires TCP, UDP, Unix sockets, files, and serial ports together. Port forwarding, OpenSSL tunnels, traffic capture — this is netcat with superpowers.
ss replaces netstat on modern Linux: faster, shows more socket detail, and reads from the kernel. Every netstat command you rely on, rewritten for ss.
Generate SSH keys, set up passwordless auth, configure SSH, and transfer files securely with SCP — the foundation of headless Linux work.
Suricata beats Snort on multi-threading and EVE JSON logging. Side-by-side IDS/IPS breakdown with Suricata install, suricata.yaml config, and OPNsense setup for home labs.
Running new hardware on Ubuntu LTS? The HWE kernel backports newer kernel and graphics support. Here's how to switch from generic to HWE safely.
Write bash scripts that don't silently fail — set -euo pipefail, error handling, input validation, and logging patterns for production scripts.