Midterm 2025#
The exercises are supposed to be done by each student solely on his/her virtual desktop. It is allowed to use any printed and web published material.
Number of exercises: 4. 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.
Please put your name in file answers.txt
1. Command find (max score 6)#
Download tar archive of nginx source code from https://nginx.org/download/nginx-1.24.0.tar.gz into directory MIDTERM.
Extrat the archive.
A) In the archive directory, find files with name ngx_process.h
B) Find the largest file in the archive.
C) How any files with extensioan .h are in the archive?
2. Commands apt and pkg (max score 4)#
A) By using command apt, download package libc6-dev into directory MIDTERM without installing it.
B) Create directory PKG and extract the package files into directory PKG.
3. VM deployment in KVM (max score 4)#
A) Create a VM, midterm2025 by cloning kvm1.
B) Find the IP address of the new VM.
C) On the desktop, put IP address of the VM and the hostname in file /etc/hosts for the name resolution. ping the VM by its hostname to make sure the hostname resolution works.
4. Network file transfer (max score 6)#
Install rsync on the VM.
A) Copy directory nginx-1.24.0 from the desktop to midterm2025 via rsync.
B) Copy directory PKG from the desktop to midterm2025 via scp.
C) Copy file nginx-1.24.0.tar.gz from the desktop to midterm2025 via netcat.