The first line of a script begins with the #! notation, which is commonly referred to as what?
she-bang
This command will schedule a job once, at a given time from the command line.
at
This is the daemon responsible for collecting logs and restructuring them into /run/log, which is a volatile location.
systemd-journald
What is the option used with the tar command that always comes last in the option sequence?
-f
What daemon is responsible for enabling the ability of 'changing the station' for servers?
tuned
Which special characters will ensure that the contents within them are interpreted literally on the command line?
' '
single quotes
To complete a deferred user job, I need to complete the scheduling with what sequence?
Ctrl+d
This service reads syslog messages that the systemd-journald service receives, and puts them into /var/log which persist across reboots.
rsyslog
When using the tar command for archiving, what options would I use to create an archive, showing me confirmation details?
-cv
systemctl start tuned
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
When creating recurring user jobs, what command do I issue to create that special file?
crontab -e
Which location in /var/log holds messages about security and authentication events?
/var/log/secure
Which option is used for xz archives?
-J
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
What is this called?
echo $?
Exit code
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
Logs are categorized by two things separated by a period. What are they?
facility.priority
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
T/F - Dynamic tuning is turned on by default once the tuned service is enabled.
F
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
You have been given a script called monthly-maintenance.sh. It needs to run at 6AM on the first day of every month.
On your board, write the crontab entry.
0 6 1 * * monthly-maintenance.sh
To ensure logs are being categorized and stored in /var/log, you need to edit what file?
/etc/systemd/journald.conf
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.
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