MauryaHub PYQ Practice

System Commands · End Term · May 2026 · AN

System Commands · End Term · May 2026 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 23 published solutions

Question 2 MCQ · 4.0 marks

Which of the following **octal permission values** grants the specified permissions? • **User:** Read and Write • **Group:** Read and Execute • **Others:** Read-only
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 4.0 marks

A system administrator creates a file named "report.txt" and then creates another file named "backup.txt" using the following command:
Source diagram or notation
Later, "report.txt" is deleted using
Source diagram or notation
. Which statement is correct?
A.
"backup.txt" is also deleted.
B.
"backup.txt" still contains the original data.
C.
"backup.txt" becomes a broken link.
D.
Both files become inaccessible.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 4.0 marks

Given:
Source diagram or notation
What does this command produce?
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 4.0 marks

For which of the following commands will the output have the **1st and 2nd columns inverted**? In the input, the **1st and 2nd columns are separated by a comma**, and in the output also, the columns should be **separated by a comma**.
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 4.0 marks

Match the AWK built-in variables with their purposes.
Source diagram or notation
A.
1-C, 2-D, 3-A, 4-B, 5-E
B.
1-B, 2-A, 3-E, 4-D, 5-C
C.
1-A, 2-B, 3-C, 4-E, 5-D
D.
1-D, 2-E, 3-B, 4-C, 5-A
E.
1-E, 2-C, 3-D, 4-A, 5-B

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 4.0 marks

Suppose you have modified
Source diagram or notation
file. You want to commit only this file. Which sequence is correct?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 4.0 marks

Match the following commands with their corresponding purposes.
Source diagram or notation
Which of the following is the correct matching?
A.
1-C, 2-A, 3-B, 4-D, 5-E
B.
1-A, 2-C, 3-D, 4-B, 5-E
C.
1-C, 2-D, 3-B, 4-A, 5-E
D.
1-B, 2-A, 3-C, 4-D, 5-E

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 4.0 marks

Match the following Bash prompt variables with the situations in which they are used.
Source diagram or notation
A.
1-C, 2-D, 3-B, 4-A
B.
1-A, 2-B, 3-C, 4-D
C.
1-B, 2-A, 3-D, 4-C
D.
1-B, 2-D, 3-A, 4-C

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

A user wants the alias:
Source diagram or notation
to be available every time they open a new interactive shell. In which file should it be added?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 3.0 marks

The primary purpose of disk mirroring is to?
A.
Increase storage capacity
B.
Improve data availability
C.
Reduce file size
D.
Encrypt data

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 5.0 marks

Consider:
Source diagram or notation
You want to count dates whose month is **January**, **February**, or **March**. Which command is correct?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 5.0 marks

Which statement correctly describes what the following regular expression checks when used with
Source diagram or notation
?
Source diagram or notation
A.
It matches only valid IPv4 addresses.
B.
It checks the four-part dotted structure but does not ensure each octet is 0–255.
C.
It matches only private IPv4 addresses.
D.
It matches only addresses beginning with 192.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 5.0 marks

Consider the following directory structure:
Source diagram or notation
How many files will be matched by the following command?
Source diagram or notation
A.
5
B.
6
C.
7
D.
8

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 5.0 marks

Assume you have executed more than 1000 commands in the last 1 hour. What does the following command do?
Source diagram or notation
A.
Displays the last 10 commands executed.
B.
Displays commands executed in the last hour.
C.
Displays the 10 longest commands.
D.
Displays the most frequently used top 10 commands.

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 5.0 marks

Consider the following Bash script:
Source diagram or notation
What is the **purpose** of this script?
A.
Counts the number of arguments that are greater than the first argument.
B.
Counts how many times an argument is greater than the argument immediately before it.
C.
Counts the number of arguments in decreasing order.
D.
Finds the largest argument and prints its position.

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 5.0 marks

Consider a file
Source diagram or notation
with the following contents:
Source diagram or notation
Given below are four
Source diagram or notation
commands and their possible outputs. **Match each command with its** **corresponding output.** **Commands** 1.
Source diagram or notation
2.
Source diagram or notation
3.
Source diagram or notation
4.
Source diagram or notation
**Outputs** **Output A**
Source diagram or notation
**Output B**
Source diagram or notation
**Output C**
Source diagram or notation
**Output D**
Source diagram or notation
Which of the following correctly matches the commands with their outputs?
A.
1-C, 2-D, 3-A, 4-B
B.
1-A, 2-D, 3-C, 4-B
C.
1-C, 2-A, 3-B, 4-D
D.
1-D, 2-C, 3-A, 4-B

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 5.0 marks

What will be the output of the following
Source diagram or notation
command when executed on the file
Source diagram or notation
?
Source diagram or notation
The file
Source diagram or notation
contains:
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MSQ · 4.0 marks

Select all the correct statements about the "PATH" variable?
A.
It determines where the shell searches for executable commands.
B.
Directory entries are typically separated by a colon " : ".
C.
Setting PATH="" prevents the shell from executing built-in commands.
D.
An executable can still be run using its absolute path even if PATH="".

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MSQ · 4.0 marks

Which statements about exported variables are correct?
A.
Child shells inherit exported variables
B.
Non-exported variables are inherited automatically
C.
Child shell modifications affect parent shell variables
D.
Exporting makes variables available to subprocesses

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MSQ · 5.0 marks

Consider the following directory structure:
Source diagram or notation
Which of the following Bash commands will create **exactly this directory structure**?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MSQ · 5.0 marks

Which of the following commands will print **all lines in**
Source diagram or notation
**except the first line (header** **line)**?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 NAT · 5.0 marks

Consider the following Bash script:
Source diagram or notation
The script is executed as:
Source diagram or notation
What numerical value is printed?

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 NAT · 4.0 marks

What does the expression below mean?
Source diagram or notation
How many times will /report.sh run in a 24-hour day?

A published solution is not available for this question yet.

Report a correction for Q24