Linux MCQs with answers Page - 5

Here, you will find a collection of MCQ questions on Linux. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833K Points
Coach

Q. In a date +format, you add the hour in 24 hours format using:

  • (A) %f
  • (B) %H
  • (C) %F
  • (D) %h

A

Admin • 833K Points
Coach

Q. What command is used with vi editor to delete a single character?

  • (A) x
  • (B) y
  • (C) a
  • (D) None of the above

A

Admin • 833K Points
Coach

Q. Which of the following is not a communication command?

  • (A) grep
  • (B) mail
  • (C) mesg
  • (D) write

A

Admin • 833K Points
Coach

Q. What command is used with vi editor to replace text from cursor to right

  • (A) S
  • (B) s
  • (C) R
  • (D) r

A

Admin • 833K Points
Coach

Q. What command is used with vi editor to move back to the beginning of a word?

  • (A) w
  • (B) e
  • (C) a
  • (D) b

A

Admin • 833K Points
Coach

Q. What command is used with vi editor to search a pattern in the forward direction?

  • (A) ??
  • (B) //
  • (C) ?
  • (D) /

A

Admin • 833K Points
Coach

Q. What command is used with vi editor to append text at end of line?

  • (A) I
  • (B) i
  • (C) a
  • (D) A

A

Admin • 833K Points
Coach

Q. Which of the following is not a filter command?

  • (A) sort
  • (B) wc
  • (C) grep
  • (D) cat

A

Admin • 833K Points
Coach

Q. While executing a command, the shell

  • (A) Executes it in the same process (as shell)
  • (B) Creates a child shell to execute it
  • (C) Loads a special program to take care of the execution
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. Which variable contains current shell process id

  • (A) $*
  • (B) $?
  • (C) $$
  • (D) $!