Safe script workflow

  1. Read the script from top to bottom before running it.
  2. Check if it uses sudo, and confirm every privileged command makes sense to you.
  3. Run on a test machine first when possible.
  4. Keep backups for files you might change (network configs, service configs, user data).
  5. Run one script at a time and verify output before moving on.

Glossary

Troubleshooting quick fixes