Linux write ISO to USB

Write an ISO to USB on Linux

How do I write an ISO to a USB stick from the command line? Try: sudo dd if=ubuntu-24.04.iso of=/dev/sdb bs=4M status=progress conv=fsync Info: dd writes data as raw blocks. bs=4M uses 4 MiB blocks for efficient transfers, status=progress displays live transfer progress, and conv=fsync waits for the data to be […]

Read More
Linux check thermal throttling

Linux Check Thermal Throttling

My laptop is slow - is it thermal throttling? Try: watch -n 1 'grep MHz /proc/cpuinfo | sort -u; sensors | grep -E "Core|Package"' Info: CPU clock speeds can drop when temperatures reach thermal limits. sensors displays live hardware temperatures, while the CPU frequency output shows current clock speeds. Low […]

Read More
MySQL database backup Linux

How to Back Up a MySQL Database Without Downtime

How do I dump a MySQL database while it's serving traffic? Try: mysqldump --single-transaction --quick --lock-tables=false --routines --triggers --events -u backup -p production_db | gzip > backup_$(date +%Y%m%d).sql.gz Info: --single-transaction creates a consistent snapshot without locking tables for InnoDB. --quick streams rows instead of loading the entire result into memory, […]

Read More