Scheduling and Automation Flashcards
What is the command to list all the crontab?
crontab -l
What is the command to edit crontab?
crontab -e
How are crontab formated?
1) Minute
2) Hour
3) Day of the month
4) Month
5) Day of the week
6) Command to execute
What is the command to remove the crontab (erase it)?
crontab -r
What is the absolute path where we can write a new service?
/lib/systemd/system/
How do I set the description of a service with systemd?
Description=
How do I set the description of a trigger with systemd?
After=
How do I set the trigger for when the environment is available?
After=multi-user.target
How do I set the command i want to start with in systemd?
ExecStart=
How do I set the user of the command i want to start with systemd?
User=
What is the command to list all the services?
systemctl list-unit-files
What is the command to enable a service?
systemctl enable [service name]
What is the command to disable a service?
systemctl disable [service name]
What is the command to start a service?
systemctl start [service name]
What is the command to stop a service?
systemctl stop [service name]