Posts
Page 79 of 79
-
Adding Extra Swap to Linux
Out of RAM and no time to reimage? Add swap via a file on any partition using mkswap, swapon, and fstab, done in under 5 minutes.
· Updated:6 min read -
Remove all old installed but unused kernels
Old kernels fill /boot until apt upgrades fail. Clear them with apt autoremove or dpkg purge on Ubuntu and Debian, plus the Proxmox quirk and how many to keep.
· Updated:6 min read -
MySQL CLI: From Connection to Maintenance
Master MySQL from the command line: connect, query databases, manage users, repair tables, optimize, everything you keep Googling, one reference.
· Updated:7 min read -
Logrotate & Compression
logrotate keeps your /var/log from eating the disk, configure rotation schedules, compression, and retention for any service log.
· Updated:6 min read -
SSH keys and secure file copy
Generate SSH keys, set up passwordless auth, configure SSH, and transfer files securely with SCP, the foundation of headless Linux work.
· Updated:6 min read -
Recursively delete all empty subdirectories
Empty directories pile up after file migrations. Prune them with find and rmdir, dry-run first, use find -delete, and handle hidden dirs without surprises.
· Updated:6 min read -
Directory FileCount
Count files in a directory (recursively or not) with find, ls, and tree, quick one-liners for when du just isn't telling you enough.
· Updated:6 min read -
Archive & Compression utilities
tar, gzip, bzip2, xz, zip, demystified. When to use each compression tool, speed vs ratio trade-offs, and the flags you'll actually need.
· Updated:6 min read -
Sed 101
sed is the stream editor for making text substitutions, deletions, and insertions in files, the patterns you'll use 90% of the time.
· Updated:6 min read