Spring 2026 Midterm exam exercises.#
March 10 2026. Time 5:40 p.m. – 9:00 p.m.
Number of exercises: 5. Each exercise has a maximum score.
In home directory of user hostadm, you need to create a new subdirectory, MIDTERM and a file within it, answers.txt, where you will be writing answers to the exam exercises.
In the file, first, put your name, then proceed with answering to the questions below.
1. VM deployment in KVM (max score 2)#
A) Create a new VMs, vmm26, by cloning kvm1.
B) Set hostname to IP address resolution for vmm26 on your virtual desktop (VD).
Make sure you can ping vmm26 from the desktop.
2. Command apt and dpkg (max score 2)#
A) Download package qt6-networkauth-dev into directory MIDTERM on the VD.
B) Extract the package content into new directory DEB.
3. Command find (max score 5)#
In directory DEB,
A) Find all files with extension .json
B) Find the largest file in directory DEB.
C) Find all files of sizes between 5000 bytes and 6000 bytes.
4. Commands tar and scp (max score 5)#
A) In directory MIDTERM, create new directory HED.
By using command find with -exec option, copy all the files with extension .h from all subdirectories in DEB into directory HED.
B) Archive directory HED with tar/gzip into file HED.tgz.
C) Copy the archive onto vmm26 by using command scp into hostadm home directory.
D) Extract the archive on vmm26.
5. Shell script (max score 6)#
A) In directory MIDTERM, create shell script with name find_archive_1.sh that completes exercises 4A and 4B.
B) Create a modified version of the script, find_archive_2.sh, that
takes file names as an input prameter in the command line,
if directory HED already exists, it removes its content, otherwise, creates the directory.
C) Run find_archive_2.sh for files *.json.