Bash Piped Logging
A quick bash logging setup that uses a named pipe and tee to capture stdout and stderr to a file while keeping the terminal interactive. Five lines of shell code, zero external dependencies.
read more
Bash Shell Redirects
A quick reference for the most common bash shell redirect operators, with examples showing how to send stdout and stderr to files or swap them.
read more
Check and Backup Databases
A quick bash workflow for running integrity checks and generating SQL dumps across a set of user databases in MySQL.
read more
Check Apache Stack Limit
A quick one-liner to inspect the stack size limit applied to a running Apache httpd process on Linux. Useful when debugging segfaults or tuning worker memory.
read more
Check Database and Optimize Everything (-A = all databases)
A quick reference for running mysqlcheck to verify and optimize MySQL databases, including the -A flag to target every database on the server in one pass.
read more
Check Disk State
A quick one-liner to list every mounted ext3 or ext4 partition along with its label and filesystem state, useful for spotting unclean shutdowns or journal issues at a glance.
read more