Ready-to-use Linux scripts

Short, readable Bash scripts for jobs that come up over and over. Every script depends only on tools your distribution already ships.

Before you run any script from the internet
  • Read it first. The scripts here are kept short so that is realistic.
  • Use the dry-run flag where one exists, or test on a machine you can afford to break.
  • If a script needs sudo, know which step needs it and why.

To run any of them on a schedule, see cron vs systemd timers or build a schedule with the crontab generator.

System administration

Files & disk