Script Valley
Linux Basics Complete Course: From Beginner to System Administrator
Module 6: Networking and Package Management/Assessment

Practice & Assessment

Test your understanding of Module 6: Networking and Package Management

Multiple Choice Questions

5
1

Which command refreshes the package index on an Ubuntu system before installing software?

2

Which curl flag shows only the HTTP response headers?

3

Which command shows all TCP and UDP ports currently listening on a Linux system?

4

What is the difference between apt remove and apt purge?

5

Which wget flag resumes an interrupted download?

Coding Challenges

1
1

Networking and Package Installation Practice

Perform the following networking tasks: Use ping -c 4 to test connectivity to google.com and 8.8.8.8. Use curl to fetch the HTTP headers from https://example.com using the -I flag. Use ss -tuln to list all listening ports and save the output to ports.txt. Install the curl and wget packages using apt (or yum on CentOS). Use wget to download the file at https://www.gnu.org/licenses/gpl-3.0.txt and save it locally. Use dig or nslookup to perform a DNS lookup for github.com and save the result to dns-lookup.txt.

Medium
GeeksForGeeks

Mini Project

1

System Setup and Software Installation

Simulate a server provisioning workflow. Update the package index with apt update. Install the following packages: curl, wget, net-tools, htop, and tree. After installation, use dpkg -l to verify each package is installed and redirect the filtered output to installed-packages.txt. Use ss -tuln to document all listening ports before and after installation. Use curl to test connectivity to at least three websites and record the HTTP status codes returned. Create a setup-report.txt file that documents every step you performed, the commands used, and the output received. Use the tree command on your home directory to visualize the file structure and append the output to setup-report.txt.

Medium