Homework 1: Linux Command Line & File Management#
Due Date: Tuesday, September 8, 2026
Virtual Desktop Environment Workflow#
Refer to the high-level workflow diagram below for establishing your remote environment session before starting the assignment.
[Web access to Ravada portal with authentication] ===> [Start VM] ===> [Access VM via SSH with provided port]
|
v
[Create & Navigate to ~/HW_1]
|
v
[Execute Assigned Shell Commands]
Instructions#
Complete all tasks directly on your assigned Virtual Desktop (VD) instance. Document your commands and output as required by your instructor.
Section 1: Directory Setup & Reading#
Access your Virtual Desktop environment.
Create a working directory named
HW_1in your home folder:mkdir ~/HW_1Navigate into
HW_1and complete all exercises listed in Section 1.20 of your course textbook.
Section 2: System File Copying & Disk Inspection#
Inside
HW_1, create a sub-directory namedFiles:mkdir FilesCopy the system kernel file
vmlinuz-6.12.105+deb13-amd64into your newly createdFilesdirectory.Check the disk space utilization of the
Filesdirectory using theducommand.
Section 3: File Acquisition & Archive Extraction#
Download the Midnight Commander source archive from the following URL using
wgetorcurl:https://ftp.osuosl.org/pub/midnightcommander/mc-4.8.33.tar.bz2
Extract all files from the compressed archive
mc-4.8.33.tar.bz2.
Section 4: Search, Cleanup, and Consolidation Operations#
Perform the following operations within the extracted source directory tree:
Locate Build Files: Find all instances of files named
Makefile.amwithin themc-4.8.33directory.Locate Data Directories: Search for all directories named
data.Targeted Cleanup: Locate and remove all directories named
hu.Size Analysis: Identify the largest single file within the directory.
Recursive Data Copy: Recursively copy all directories named
datainto a new directory namedall_datainside yourHW_1folder.Archive Creation: Create a compressed gzipped tar archive of the
all_datadirectory namedall_data.tgz:tar -czvf all_data.tgz all_data