Interview Prep/Shell Scripting/Best practices and rapid-fire commands

Rapid fire: one-liners for files and housekeeping.

BeginnerConceptBest practices and rapid-fire commands
Answer
find /var/log/app -name '*.log' -mtime +14 -delete
find / -xdev -type f -size +1G -exec ls -lh {} + 2>/dev/null
tar -czf "backup-$(date +%F).tar.gz" -C /etc nginx
sha256sum -c SHA256SUMS
rsync -a --delete --dry-run src/ dst/               # preview a mirror
ls -1t /var/backups/*.tar.gz | tail -n +8           # all but the newest 7 (simple names only)
stat -c '%U:%G %a %n' /etc/opskit/opskit.conf
install -d -m 0750 -o app -g app /srv/app/shared
All Shell Scripting questions Roadmap: Shell scripting (Bash)

More on Best practices and rapid-fire commands