- Write a bash script: Create a file with
#!/bin/bash
at the top and script contents. - Execute a bash script:
bash [script_file]
- Schedule a cron job:
crontab -e
and add line[minute] [hour] [day_of_month] [month] [day_of_week] [command]
- Install packages (Debian/Ubuntu):
apt-get install [package]
- Install packages (RedHat/CentOS):
yum install [package]
ordnf install [package]