Schedule Future Tasks Flashcards

1
Q

Show a conf file of a systemctl service or time

A

systemctl cat sysstat-collect.timer

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

Enable a service through a timer

A

systemctl daemon-reload
systemctl enable –now touchfile.timer

OR

systemctl start touchfile.timer

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

Check if a timer is enabled

A

systemctl status touchfile.timer

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

Schedule a job with at 5 mins from now

A

at now +5min < command/script

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

Show pending at jobs

A

atq

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

Inspect command of an at job

A

at -c JOBNUMBER

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

Assign a queue to a at job

A

at -q g 5pm

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

List cronjobs for current user

A

crontab -l

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

Remove all jobs for current user

A

crontab -r

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

Edit (add) jobs for the current user

A

crontab -e

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

Where is anacron located

A

/etc/anacrontab

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

Where are daily, weekly and monthly anacron jobs located

A

/var/spool/anacron

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

rpm provided tmpfiles.d location

A

/usr/lib/tmpfiles.d/

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

where to place your own config file for systemd-tmpfiles

A

/etc/tmpfiles.d/

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

system created config files for tmpfiles.d

A

/run/tmpfiles.d/

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

Check syntax of a tmpfiles.d config file

A

systemd-tmpfiles –clean /etc/tmpfiles.d/myconfig.conf

17
Q

Execute the command in a tmfiles.d config file manually

A

systemd-tmpfiles –create /etc/tmpfiles.d/myfiles.conf

18
Q

Clean up the files manually in a tmpfiles.d config file

A

systemd-tmpfiles –clean /etc/tmpfiles.d/myfiles.conf

19
Q

Check systemctl for specific timers

A

systemctl list-unit-files -t timer