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:

  1. Create a file named 'log.txt' and add specific lines about errors and warnings
  2. Edit 'log.txt' to replace "Warning" with "Error"
  3. Find all lines containing the word "Error"
  4. Count the number of lines in 'log.txt'
  5. Sort the contents of 'log.txt' and save to 'sorted_log.txt'

Section B: Shell Script (8 Marks)

Questions:

  1. Write a menu-driven shell script to reverse a number passed as a command line argument
  2. 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:

  1. Initialize a Git repository, create README.md, and commit it
  2. Create branches, edit files in each branch, and merge them resolving conflicts
  3. Use Git's undo functionality to manage changes

Section D: Docker Commands (6 Marks)

Questions:

  1. Create a container for HTTPD and run a custom HTML file