Scripts
Jobs
Logs
Archiving/Transfering
Tuning
100

The first line of a script begins with the #! notation, which is commonly referred to as what?

she-bang

100

This command will schedule a job once, at a given time from the command line.

at

100

This is the daemon responsible for collecting logs and restructuring them into /run/log, which is a volatile location.

systemd-journald

100

What is the option used with the tar command that always comes last in the option sequence?

-f

100

What daemon is responsible for enabling the ability of 'changing the station' for servers?

tuned

200

Which special characters will ensure that the contents within them are interpreted literally on the command line?

' '

single quotes

200

To complete a deferred user job, I need to complete the scheduling with what sequence?

Ctrl+d

200

This service reads syslog messages that the systemd-journald service receives, and puts them into /var/log which persist across reboots.

rsyslog

200

When using the tar command for archiving, what options would I use to create an archive, showing me confirmation details?

-cv

200
What command will start the tuned service?

systemctl start tuned

300

On your board, write a for loop using the variable 'i' that will create 3 files: 

- file1, file2, file3

for i in file1 file2 file3; do touch $i; done

300

When creating recurring user jobs, what command do I issue to create that special file?

crontab -e

300

Which location in /var/log holds messages about security and authentication events?

/var/log/secure

300

Which option is used for xz archives?

-J

300

This command talks to the tuned service and allows the ability to view the profile, change the profile, and other related static tuning services.

tuned-adm

400

What is this called?

echo $?

Exit code

400

Which fields are indicated by the *'s in this crontab?

30 2 * * 1-5 /usr/local/bin/backup.sh

Day of Month

Month of Year

400

Logs are categorized by two things separated by a period. What are they?

facility.priority

400

Assume I am connected to serverb via SFTP.

To fetch a file named /tmp/testfile from serverb, what SFTP command would I need to type at the prompt?

Write it on your board.

get /tmp/testfile

400

T/F - Dynamic tuning is turned on by default once the tuned service is enabled.

F

500

To make a script execute as a command it must exist in a specific location. How can I find a list of those directory locations?

echo $PATH

500

You have been given a script called monthly-maintenance.shIt needs to run at 6AM on the first day of every month.

On your board, write the crontab entry.


500

To ensure logs are being categorized and stored in /var/log, you need to edit what file?

/etc/systemd/journald.conf

500

I am on Workstation as root.

On your board, write the rsync command that will sync /var/log on Workstation to /var/log on root@serverb.

rsync -av /var/log root@serverb:/var/log
500

I am root and have a script named configs.sh.

What command will allow me to execute this script with a nice value of -10?

nice -n -10 configs.sh

M
e
n
u