MauryaHub PYQ Practice

System Commands · Quiz 1 · Jan 2024

System Commands · Quiz 1 · Jan 2024

← 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 / 16 published solutions

Question 240 MSQ · 6.0 marks

Ajit is writing an essay in English. He realizes that he has used both the American English and British English spellings for the same words in his essay. He wants to find all such occurrences for the words "color/colour" and "program/programme". Help him by selecting the correct regular expression which will capture the British version as well as American version of the words from the text. Make sure It only collects the words which has correct spellings in either of the format. Note: It is an Extended Regular Expression (ERE)
6406532468329.Source diagram or notation
6406532468330.Source diagram or notation
6406532468331.Source diagram or notation
6406532468332.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q240

Question 241 MSQ · 6.0 marks

Source diagram or notation
6406532468333.Source diagram or notation
6406532468334.Source diagram or notation
6406532468335.Source diagram or notation
6406532468336.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q241

Question 242 MSQ · 6.0 marks

For a log file 'file.txt' the user wants to change the permissions such that he gives read, write, and execute to the owner; read and execute to the group and others. which of the following commands will accomplish the same?
6406532468337.Source diagram or notation
Source diagram or notation
6406532468338.Source diagram or notation
6406532468339.Source diagram or notation
6406532468340.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q242

Question 243 MSQ · 6.0 marks

$ sleep 200 & $ ps PID TTY TIME CMD 1@ pts/® 60:00:02 bash 344 pts/0 00:00:00 sleep 345 pts/0 00:00:00 ps Select the command(s) from the options below which will suspend the sleep process started as shown in the above code block. $ man kill KILL(1) User Commands KILL(1) NAME kill - send a signal to a process SYNOPSIS kill [options] <pid> [...] DESCRIPTION The default signal for kill is TERM. Use -1 or -L to list available signals. Particularly useful signals include HUP, INT, KILL, STOP, CONT, and ®. Alter- nate signals may be specified in three ways: -9, -SIGKILL or - KILL. Negative PID values may be used to choose whole process groups; see the PGID column in ps command output. A PID of -1 is special; it indicates all processes except the kill process itself and init. OPTIONS <pid> [...] Send signal to every <pid> listed.
Source diagram or notation
6406532468341.Source diagram or notation
6406532468342.Source diagram or notation
6406532468343.Source diagram or notation
6406532468344.Source diagram or notation
6406532468345.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q243

Question 244 MSQ · 6.0 marks

Source diagram or notation
6406532468354.Source diagram or notation
6406532468355.Source diagram or notation
6406532468356.Source diagram or notation
6406532468357.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q244

Question 245 MSQ · 6.0 marks

Following bash script is run to find if a given file has a 'txt' extension. Which of the following option(s) will achieve the same?
Source diagram or notation
6406532468373.Source diagram or notation
6406532468374.Source diagram or notation
6406532468375.Source diagram or notation
6406532468376.Source diagram or notation
6406532468377.Source diagram or notation
6406532468378.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q245

Question 246 MSQ · 9.0 marks

Source diagram or notation
6406532468358.Source diagram or notation
6406532468359.Source diagram or notation
6406532468360.Source diagram or notation
6406532468361.Source diagram or notation
6406532468362.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q246

Question 247 MSQ · 9.0 marks

Source diagram or notation
6406532468383.Source diagram or notation
6406532468384.Source diagram or notation
6406532468385.Source diagram or notation
6406532468386.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q247

Question 248 MSQ · 8.0 marks

Source diagram or notation
6406532468388.Source diagram or notation
6406532468389.Source diagram or notation
6406532468390.Source diagram or notation
6406532468391.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q248

Question 249 MCQ · 6.0 marks

Source diagram or notation
6406532468346.Source diagram or notation
6406532468347.Source diagram or notation
6406532468348.Source diagram or notation
6406532468349.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q249

Question 250 MCQ · 6.0 marks

Source diagram or notation
6406532468350.
10
6406532468351.
20
6406532468352.
test1010
6406532468353.
will result in error

A published solution is not available for this question yet.

Report a correction for Q250

Question 251 MCQ · 6.0 marks

Source diagram or notation
6406532468379.Source diagram or notation
6406532468380.Source diagram or notation
6406532468381.Source diagram or notation
6406532468382.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q251

Question 252 NAT · 4.0 marks

Source diagram or notation
How many soft links are present in the list?

A published solution is not available for this question yet.

Report a correction for Q252

Question 253 NAT · 4.0 marks

Source diagram or notation
Assume that each directory has 2 hard links (one for the current working directory and another from its parent directory) and a link each for the sub-directory's parent directory. How many subdirectories are present in the current working directory?

A published solution is not available for this question yet.

Report a correction for Q253

Question 254 MSQ · 6.0 marks

Source diagram or notation
From the given information, which of the following types are present in the list?
6406532468365.
regular file
6406532468366.
directory
6406532468367.
hard links
6406532468368.
soft/symbolic links
6406532468369.
character files
6406532468370.
block files
6406532468371.
named pipe files
6406532468372.
socket files

A published solution is not available for this question yet.

Report a correction for Q254

Question 255 NAT · 6.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q255