Posts
Page 71 of 72
-
Bulk rename files in bash
Bulk rename files from bash: strip spaces and special characters with loops, parameter expansion, rename, and perl patterns. Test before you touch anything.
· Updated:5 min read -
linux shell argument list too long rsync or cp
Fix 'Argument list too long' in bash when cp or rsync chokes on thousands of files, glob loops, find + xargs, and the ARG_MAX reason behind it.
· Updated:5 min read -
Find out whats taking up all the hdd space
Your disk is full and du is lying to you. ncdu, df, and find tricks to track down space hogs before your server goes down at 2 AM.
· Updated:6 min read -
Bash for loops sequential counting
Master bash for loops, while loops, and seq for sequential counting, iterate over files, ranges, and arrays without losing your mind.
· Updated:6 min read -
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:5 min read -
Repair & Optimize all Mysql Databases one liner
Repair and optimize all MySQL databases at once with mysqlcheck, a one-liner that runs on every table without logging into MySQL.
· 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:5 min read -
Linux CLI Tarball Extraction, Flags, Formats, Gotchas
Extract tar.gz, tar.bz2, tar.xz, flags demystified, compression compared, directory extraction, and the gotchas that trip you up.
· 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:5 min read -
Remove spaces or Edit chracters in filenames
Rename files to remove spaces and special characters using bash, rename, tr, and parameter expansion patterns for bulk file cleanup.
· Updated:6 min read -
Logrotate & Compression
logrotate keeps your /var/log from eating the disk, configure rotation schedules, compression, and retention for any service log.
· Updated:5 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:5 min read