Backup Script with Bash
#!/bin/bash
# backup.sh
SOURCE_DIR="/path/to/source"
DEST_DIR="/path/to/destination"
DATE=$(date +'%Y%m%d')
tar -czvf "${DEST_DIR}/backup_${DATE}.tar.gz" "$SOURCE_DIR"
Update & Clean Up Apt Packages (Debian/Ubuntu)
sudo apt update && sudo apt upgrade -y
sudo apt autoremove -y && sudo apt clean
Check Disk Usage on Linux
# Summary of disk space usage for each filesystem
df -h
# List folder sizes in the current directory
du -sh *
Check System Resource Usage
top
# Or, for a summary
htop # Provides a better interface if available