Skip to content

Tag: linux

All the articles with the tag "linux".

Logrotate & Compression

Logrotate & Compression

· Updated:

logrotate keeps your /var/log from eating the disk, configure rotation schedules, compression, and retention for any service log.

SSH keys and secure file copy

SSH keys and secure file copy

· Updated:

Generate SSH keys, set up passwordless auth, configure SSH, and transfer files securely with SCP, the foundation of headless Linux work.

Recursively delete all empty subdirectories

Recursively delete all empty subdirectories

· Updated:

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.

Directory FileCount

Directory FileCount

· Updated:

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.

Archive & Compression utilities

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.

Sed 101

Sed 101

· Updated:

sed is the stream editor for making text substitutions, deletions, and insertions in files, the patterns you'll use 90% of the time.