Scheduling and Automation Flashcards

1
Q

What is the command to list all the crontab?

A

crontab -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the command to edit crontab?

A

crontab -e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are crontab formated?

A

1) Minute
2) Hour
3) Day of the month
4) Month
5) Day of the week
6) Command to execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the command to remove the crontab (erase it)?

A

crontab -r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the absolute path where we can write a new service?

A

/lib/systemd/system/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do I set the description of a service with systemd?

A

Description=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do I set the description of a trigger with systemd?

A

After=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do I set the trigger for when the environment is available?

A

After=multi-user.target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do I set the command i want to start with in systemd?

A

ExecStart=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do I set the user of the command i want to start with systemd?

A

User=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the command to list all the services?

A

systemctl list-unit-files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the command to enable a service?

A

systemctl enable [service name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the command to disable a service?

A

systemctl disable [service name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the command to start a service?

A

systemctl start [service name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the command to stop a service?

A

systemctl stop [service name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly