uiz Space

May 2025 term · System Commands · BSSE2001

System Commands End Term: 31 August 2025, Set QDD3 (May 2025 term)

The IIT Madras BS System Commands (System Commands) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDD3: 20 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
20
Marks
100
Duration
180 min
MCQ
10
MSQ
5
Numerical
5

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD3 31 Aug 2025 · No negative marking.

Question 1

+5 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 2

+5 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 3

+5 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 4

+5 marksOne correct option

You suspect a configuration file for the package nginx was modified manually. Which command will verify this without reinstalling or removing the package?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 5

+5 marksOne correct option

A file numbers.txt contains several lines of numeric strings. You want to find lines where any digit is repeated exactly twice consecutively (like "1123", "4456"). Which command works correctly?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 6

+5 marksOne correct option

You're using gawk to identify repeated words in notes.txt. Which gawk statements correctly use backreferences?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 7

+5 marksOne correct option
  1. A

    Only link target runs

  2. B

    Both compile and link run

  3. C

    Nothing runs since main.o exists

  4. D

    Only compile runs

Show answer

Correct answer

  • B

    Both compile and link run

Question 8

+5 marksOne correct option
  1. A

    red and green

  2. B

    red and blue

  3. C

    green and yellow

  4. D

    red and yellow

Show answer

Correct answer

  • B

    red and blue

Question 9

+5 marksOne correct option
  1. A

    192.168.0.1 3

  2. B

    192.168.0.2 2

  3. C

    192.168.0.3 1

  4. D

    Both 192.168.0.1 3 and 192.168.0.2 2

Show answer

Correct answer

  • A

    192.168.0.1 3

Question 10

+5 marksOne correct option
  1. A

    First line of each paragraph

  2. B

    All blank lines

  3. C

    Entire file in one line

  4. D

    First field of each line

Show answer

Correct answer

  • A

    First line of each paragraph

Question 11

+5 marksOne or more correct options

Select all that apply.

  1. A

    sed -n '1,10p' file.txt

  2. B

    sed 11q file.txt

  3. C

    awk 'NR <= 10' file.txt

  4. D

    cat -n 10 file.txt

Show answer

Correct answers

  • A

    sed -n '1,10p' file.txt

  • B

    sed 11q file.txt

  • C

    awk 'NR <= 10' file.txt

Question 12

+5 marksOne or more correct options

Below is the man page of `grep`.

Which of the following commands will print only the name of all .txt files that do not contain the word "error"? Assume the current directory does not have any subdirectories. Assume the filenames are alphanumeric.

Select all that apply.

  1. A

    grep -L "error" *.txt

  2. B

    grep -v "error" *.txt

  3. C

    grep -L "error" -- *.txt

  4. D

    find . -name "*.txt" | xargs grep -L "error"

Show answer

Correct answers

  • A

    grep -L "error" *.txt

  • C

    grep -L "error" -- *.txt

  • D

    find . -name "*.txt" | xargs grep -L "error"

Question 13

+5 marksOne or more correct options

Which of the following statements about subshells is/are true?

Select all that apply.

  1. A

    (cd /tmp; ls) runs in a subshell

  2. B

    cd /tmp; ls runs in a subshell

  3. C

    Variables set in a subshell are visible to the parent shell

  4. D

    Commands inside $(...) are executed in a subshell

Show answer

Correct answers

  • A

    (cd /tmp; ls) runs in a subshell

  • D

    Commands inside $(...) are executed in a subshell

Question 14

+5 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • B
  • D

Question 15

+5 marksOne or more correct options

Which of the following find commands will list all regular files in /var/log modified more than 7 days ago and larger than 5MB?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • C

Question 16

+5 marksNumerical answer
Show answer

Correct answer: 1

Question 17

+5 marksNumerical answer
Show answer

Correct answer: 120

Question 18

+5 marksNumerical answer
Show answer

Correct answer: 9

Question 19

+5 marksNumerical answer
Show answer

Correct answer: 2

Question 20

+5 marksNumerical answer
Show answer

Correct answer: 25