0% found this document useful (0 votes)
0 views2 pages

DevOps Assignment 1

The document outlines an assignment focused on Linux basics and networking, worth 25 points. It includes theory questions about Linux commands, file system hierarchy, permissions, and networking concepts, as well as practical tasks involving scripting for network monitoring, network configuration, and port scanning. Students are expected to demonstrate their understanding through both theoretical explanations and practical implementations.

Uploaded by

omar97alaa.qa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

DevOps Assignment 1

The document outlines an assignment focused on Linux basics and networking, worth 25 points. It includes theory questions about Linux commands, file system hierarchy, permissions, and networking concepts, as well as practical tasks involving scripting for network monitoring, network configuration, and port scanning. Students are expected to demonstrate their understanding through both theoretical explanations and practical implementations.

Uploaded by

omar97alaa.qa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DevOps Assignment 1: Linux Basics and Networking (25 points)

Linux is the foundation of many DevOps tools and cloud infrastructure. Understanding
Linux commands, networking concepts, and configuration is crucial.

Theory Questions (10 points)


a) Linux Commands
●​ Describe the following commands and give practical scenarios for their usage:
o​ ls, chmod, ps, grep, df, ip addr, ping, netstat.​
(Example: How would you use ps to find all processes owned by a specific
user?)
b) File System and Permissions
●​ Explain the Linux file system hierarchy. What is the purpose of directories like
/etc, /usr, /var, and /dev?
●​ How do file permissions work in Linux? Describe the permission types and what
the output rwxr-xr-- means for a file.
c) Linux Networking Concepts
●​ Compare TCP and UDP. When would each protocol be more appropriate?
●​ What is the role of DNS in networking? Explain how DNS resolution works in
Linux (e.g., with the dig command).
●​

Practical Task (15 points)


a) Basic Scripting
●​ Create a bash script that monitors a Linux system’s network connectivity. It
should:
o​ Ping a specific website (e.g., google.com) every 5 minutes.
o​ Log both successful and failed attempts into a file with timestamps.
o​ Automatically restart the network service if the system is offline for more
than 3 checks.
b) Network Configuration
●​ Configure a Linux machine to:
o​ Set a static IP address.
o​ Configure a custom DNS server (e.g., Google DNS).
o​ Set up firewall rules to allow HTTP traffic (port 80) and block all other
external traffic.​
Provide detailed steps for achieving this, including any configuration file
changes.
c) Port Scanning
●​ Use tools like nmap or netstat to scan and list all open ports on a machine.
Summarize the findings and explain which services are running on these ports.

You might also like