The paper has multiple sections covering Linux Commands, Shell Script, Git Commands, and Docker Commands. Let me go through the questions and provide solutions for each section:
Section A: Linux Commands (10 Marks)
Questions:
- Create a file named 'log.txt' and add specific lines about errors and warnings
- Edit 'log.txt' to replace "Warning" with "Error"
- Find all lines containing the word "Error"
- Count the number of lines in 'log.txt'
- Sort the contents of 'log.txt' and save to 'sorted_log.txt'
Section B: Shell Script (8 Marks)
Questions:
- Write a menu-driven shell script to reverse a number passed as a command line argument
- Write a script to perform arithmetic operations on digits of a number based on an operator passed as an argument
Section C: Git Commands (6 Marks)
Questions:
- Initialize a Git repository, create README.md, and commit it
- Create branches, edit files in each branch, and merge them resolving conflicts
- Use Git's undo functionality to manage changes
Section D: Docker Commands (6 Marks)
Questions:
- Create a container for HTTPD and run a custom HTML file