107.2 Automate System Administration Tasks By Scheduling Jobs Flashcards

1
Q

Alias for batch command.

A

at -b

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

cats the details of the job to standard output.

A

at -c [job ID]

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

Two commands to list pending jobs.

A

at -l

atq

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

at argument to never send mail to user.

A

at -M

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

Command to execute job at specified time.

A

at -t [time]

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

Command to show when a batch job will run.

A

at -v

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

The daemon that runs jobs queued by at.

A

atd

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

Command to set time to wait between batch jobs.

A

atd -b

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

Command to process at/batch queue only once.

A

atd -s

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

Type of job that executes when the specified load level permits.

A

batch

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

Command to delete cron job number 7.

A

atrm 7

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

Type of jobs that can run simultaneously with complex scheduling.

A

at jobs

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

Type of jobs that run sequentially when system load is low.

A

batch jobs

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

How to restrict cron jobs from sending an email to the user?

A

Append >/dev/null 2>&1 to the end of the crontab entry

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

What must be at the end of each crontab entry?

A

A newline character

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

Command for users to edit their crontab file.

A

crontab

17
Q

Command to remove the user’s crontab file.

A

crontab -r

18
Q

crontab file format:

A

minute, hour, day of month, month of year, day of week, username, and command

19
Q

In crontab, what happens if both day of month and day of week are specified?

A

This creates an or condition, both will be executed.

20
Q

Commands that are best suited for running a command once.

A

at

batch

21
Q

Command best suited for running a command on a repeating interval.

A

crontab

22
Q

Command used to execute cron jobs periodically, with a frequency specified in days and a wait time in minutes, and will run jobs if missed?

A

anacron

23
Q

Path to the system cron table

A

/etc/crontab

24
Q

Path to files that specify which users are allowed and not allowed to run cron jobs

A

/etc/cron.allow and /etc/cron.deny

Default is a blank cron.allow to allow all users to run cron jobs.

25
Q

Path to files that specify users who are allowed or not allowed to run batch jobs.

A

/etc/at.allow and /etc/at.deny

If at.allow exists, only those users specified can use at.

26
Q

Path to centralized location to manage crontabs named by username on servers with many users.

A

/etc/cron.d/

27
Q

Path where individual user crontabs are stored.

A

/var/spool/cron/*

28
Q

Path where anacrontab stores job identifiers like cron.daily, cron.weekly, and cron.monthly.

A

/var/spool/anacron/*

29
Q

Path to the cron daemon.

A

/usr/sbin/crond

30
Q

Path to the shell used to execute cron jobs.

A

/usr/bin/sh

31
Q

Method for editing anacrontab.

A

vi /etc/anacrontab

32
Q

If an empty /etc/cron.deny exists and no /etc/cron.allow exists, can users still use the crontab command?

A

Yes