Study guide
IT-230 - Midterm Study Guide
Overview
The Midterm exam will be taken in the SCC Lab environment hosted on the SCC VDI. Each item specifies which host(s) to use for that item.
The professor is not able to access your lab environment. To get credit for completing an item, you must attach a screenshot proving that you completed it. For example, if the item says to create a directory, you must run a command that will show that the directory has been created and take a screenshot of the output. If you need to modify a text file to accomplish an item, include a screenshot of the edited file content. If proof that you accomplished an item is not captured in a screenshot you will NOT get credit for it.
You must also show your work. In this case your work is stored in the Bash history. Run the following commands at the start of each numbered item. These commands will clear your history:
history -c
history -w
Once you have completed each numbered item, run the history command and attach the output as a screenshot. More than one screenshot may be needed if you ran many commands. Do not worry about keeping your history “clean.” Having many extra commands in the history will not harm your grade in any way.
-
Multiple searches in a single command
- Host
servera
-
Perform a search on the
/etc/yum.repos.d/rhel-dvd.repofile for any lines that containbaseos(case-insensitive) or begin withgpg -
Send the output to the file
/tmp/baseos - Screenshot(s) of the command history
-
Transfer an archive
- Host
-
servera(andworkstation)
-
On
servera, create a gzip-compressed tar archive of the/etc/profile.ddirectory. Name the archiveprofile-config-backup.tar.gzand save it in/home/student/. - Verify the contents of the archive without extracting it.
-
Using
sftp, transfer the file to the/home/student/directory on the workstation VM. Verify the file arrived successfully. - Screenshot(s) of the command history
-
Write a Bash script named
check_file.sh- Host
servera
-
The script should be located at
/home/student/check_file.sh. The script should be executable. The script should use/bin/bashas its interpreter. -
The script should accept one or more arguments.
The arguments will be either a file or a
directory. For each argument, the script should
print the argument followed by 'is a file' if
the argument is a file; otherwise, the script
should print the name of the argument followed
by 'is not a file'. Show the entire content of
the
check_file.shscript. -
Run the script as shown below and capture the
output in a screenshot
-
/home/student/check_file.sh /etc /etc/passwd
-
- Screenshot(s) of the command history.
-
Recurring Task
- Host
servera
-
Schedule a task that runs the command
touch /etc/motdas root every Monday in August at 10:20 pm. - Screenshot(s) of the command history.
-
Configure Apache to serve content from
/webonservera- Host
-
servera(verify connectivity fromworkstation)
-
Configure
serverato start Apache when it boots up -
Make a
/webdirectory onservera -
Create a
/web/index.htmlfile with your first and last name in an<h1>tag. -
Configure Apache to use
/webas theDocumentRoot -
Configure SELinux as needed to serve the new
DocumentRoot. Ensure any configuration changes will persist after a reboot. - Configure the Firewall as needed to allow Apache to serve web traffic on port 80. Ensure any configuration changes will persist after a reboot.
-
From
workstation, use thecurlcommand to display theindex.htmlcontent fromservera. - Screenshot(s) of the command history.
-
Configure Apache to serve from port 8484 on
serverb- Host
-
serverb(verify connectivity fromworkstation)
-
Configure
serverbto start Apache when it boots up -
Create an
index.htmlfile with your first and last name in an<h1>tag. - Configure Apache to listen on port 8484.
- Configure SELinux as needed to allow Apache to start and serve web traffic on port 8484. Ensure any configuration changes will persist after a reboot.
- Configure the Firewall as needed to allow Apache to serve web traffic on port 8484. Ensure any configuration changes will persist after a reboot.
-
From workstation, use the
curlcommand to display theindex.htmlcontent fromserverb. - Screenshot(s) of the command history.
-
Change timezone
- Host
servera
-
Change
serverato the timezone that covers Chicago, Illinois. - Screenshot(s) of the command history.
-
Configure Rsyslog to store
authpriverrmessages in a custom log file- Host
servera
-
Configure
rsyslogto write allauthprivfacility messages at priorityerror higher to/var/log/auth-errs -
Use the
loggercommand to send a test message to theauthprivfacility witherrpriority. - Verify the message appears in the new log file.
- Screenshot(s) of the command history.
-
Activate the
network-throughputprofile forTuneD- Host
servera
-
Configure
serverato starttunedwhen it boots up -
Activate the
network-throughputprofile - Verify it is the active profile
- Screenshot(s) of the command history.