Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 91 to 100 out of 115 Questions
91.
Which option is used with uniq command for selecting non-repeated lines?
(a) -i
(b) -c
(c) -u
(d) -a
Answer:

Option (c)

92.
Which command is used for translating characters?
(a) sort
(b) trans
(c) tr
(d) paste
Answer:

Option (c)

93.
Which option is used with tr command for deleting characters?
(a) -d
(b) -c
(c) -n
(d) -a
Answer:

Option (a)

94.
Which one of the following command is used for searching for a pattern in one or more file(s)?
(a) cd
(b) cp
(c) paste
(d) grep
Answer:

Option (d)

95.
Which one of the following is the correct syntax for grep command?
(a) grep options filename(s)
(b) grep options pattern
(c) grep pattern filename
(d) grep options pattern filename(s)
Answer:

Option (d)

96.
grep command can be used for searching a pattern in more than one file.
(a) TRUE
(b) FALSE
Answer:

Option (a)

97.
What is a shell script?
(a) Group of commands
(b) A file containing special symbols
(c) A file containing a series of commands
(d) Group of functions
Answer:

Option (c)

98.
Shell scripts need to be saved with an extension .sh .
(a) TRUE
(b) FALSE
Answer:

Option (b)

99.
To run the script. we should make it executable first by using _____
(a) chmod +x
(b) chmod +r
(c) chmod +w
(d) chmod +rwx
Answer:

Option (a)

100.
Which of the following operators are used for logical execution?
(a) ||
(b) &&
(c) %%
(d) && and ||
Answer:

Option (d)

Showing 91 to 100 out of 115 Questions