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.
All the articles with the tag "linux".
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.
Master bash for loops, while loops, and seq for sequential counting, iterate over files, ranges, and arrays without losing your mind.
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.
Repair and optimize all MySQL databases at once with mysqlcheck, a one-liner that runs on every table without logging into MySQL.
Old kernels pile up in /boot and eat disk space, safely remove unused kernels on Ubuntu and Debian with apt and dpkg.
Extract tar.gz, tar.bz2, tar.xz, flags demystified, compression compared, directory extraction, and the gotchas that trip you up.
Master MySQL from the command line: connect, query databases, manage users, repair tables, optimize, everything you keep Googling, one reference.
Rename files to remove spaces and special characters using bash, rename, tr, and parameter expansion patterns for bulk file cleanup.
logrotate keeps your /var/log from eating the disk, configure rotation schedules, compression, and retention for any service log.
Generate SSH keys, set up passwordless auth, configure SSH, and transfer files securely with SCP, the foundation of headless Linux work.
Clean up empty directories with find and rmdir, safely prune orphaned dirs left after file migrations.
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.