MauryaHub PYQ Practice

System Commands · End Term · May 2025 · AN

System Commands · End Term · May 2025 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 / 20 published solutions

Question 376 MCQ · 5.0 marks

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 Q376

Question 377 MCQ · 5.0 marks

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 Q377

Question 378 MCQ · 5.0 marks

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 Q378

Question 379 MCQ · 5.0 marks

You suspect a configuration file for the package nginx was modified manually. Which command will verify this without reinstalling or removing the package?
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 Q379

Question 380 MCQ · 5.0 marks

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?
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 Q380

Question 381 MCQ · 5.0 marks

You're using gawk to identify repeated words in notes.txt. Which gawk statements correctly use backreferences?
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 Q381

Question 382 MCQ · 5.0 marks

Source diagram or notation
A.
Only link target runs
B.
Both compile and link run
C.
Nothing runs since main.o exists
D.
Only compile runs

A published solution is not available for this question yet.

Report a correction for Q382

Question 383 MCQ · 5.0 marks

Source diagram or notation
A.
red and green
B.
red and blue
C.
green and yellow
D.
red and yellow

A published solution is not available for this question yet.

Report a correction for Q383

Question 384 MCQ · 5.0 marks

Source diagram or notation
A.
192.168.0.1 3
B.
192.168.0.2 2
C.
192.168.0.3 1
D.
Both 192.168.0.1 3 and 192.168.0.2 2

A published solution is not available for this question yet.

Report a correction for Q384

Question 385 MCQ · 5.0 marks

Source diagram or notation
A.
First line of each paragraph
B.
All blank lines
C.
Entire file in one line
D.
First field of each line

A published solution is not available for this question yet.

Report a correction for Q385

Question 386 MSQ · 5.0 marks

Source diagram or notation
A.
sed -n '1,10p' file.txt
B.
sed 11q file.txt
C.
awk 'NR <= 10' file.txt
D.
cat -n 10 file.txt

A published solution is not available for this question yet.

Report a correction for Q386

Question 387 MSQ · 5.0 marks

Below is the man page of `grep`.
Source diagram or notation
Matching Control -e PATTERNS, --regexp=PATTERNS Use PATTERNS as the patterns. If this option is used multiple times or is combined with the -f (--file) option, search for all patterns given. This option can be used to protect a pattern beginning with “-”. -f FILE, --file=FILE Obtain patterns from FILE, one per line. If this option is used multiple times or is combined with the -e (--regexp) option, search for all patterns given. The empty file contains zero patterns, and therefore matches nothing. If FILE is - , read patterns from standard input. -i, --ignore-case Ignore case distinctions in patterns and input data, so that characters that differ only in case match each other. --no-ignore-case Do not ignore case distinctions in patterns and input data. This is the default. This option is useful for passing to shell scripts that already use -i, to cancel its effects because the two options override each other. -v, --invert-match Invert the sense of matching, to select non-matching lines. -w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non-word constituent character. Word-constituent characters are letters, digits, and the underscore. This option has no effect if -x is also specified. -x, --line-regexp Select only those matches that exactly match the whole line. For a regular expression pattern, this is like parenthesizing the pattern and then surrounding it with * and $. General Output Control -e, --count Suppress normal output; instead print a count of matching lines for each input file. With the -v, --invert-match option (see above), count non-matching lines. --color[=WHEN] , --colour[=WHEN] Surround the matched (non-empty) strings, matching lines, context lines, file names, line numbers, byte offsets, and separators (for fields and groups of context lines) with escape sequences to display them in color on the terminal. The colors are defined by the environment variable GREP COLORS. WHEN is never, always, or auto. -L, --files-without-match Suppress normal output; instead print the name of each input file from which no output would normally have been printed. -1, --files-with-matches Suppress normal output; instead print the name of each input file from which output would normally have been printed. Scanning each input file stops upon first match.
Source diagram or notation
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.
A.
grep -L "error" *.txt
B.
grep -v "error" *.txt
C.
grep -L "error" -- *.txt
D.
find . -name "*.txt" | xargs grep -L "error"

A published solution is not available for this question yet.

Report a correction for Q387

Question 388 MSQ · 5.0 marks

Which of the following statements about subshells is/are true?
A.
(cd /tmp; ls) runs in a subshell
B.
cd /tmp; ls runs in a subshell
C.
Variables set in a subshell are visible to the parent shell
D.
Commands inside $(...) are executed in a subshell

A published solution is not available for this question yet.

Report a correction for Q388

Question 389 MSQ · 5.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation
E.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q389

Question 390 MSQ · 5.0 marks

Which of the following find commands will list all regular files in /var/log modified more than 7 days ago and larger than 5MB?
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 Q390

Question 391 NAT · 5.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q391

Question 392 NAT · 5.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q392

Question 393 NAT · 5.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q393

Question 394 NAT · 5.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q394

Question 395 NAT · 5.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q395