Linux MCQs with answers Page - 86

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 • 833.24K Points
Coach

Q. Which command is used to display list of files and subdirectories in linux?

  • (A) touch command
  • (B) dir command
  • (C) mkdir command
  • (D) rmdir command

A

Admin • 833.24K Points
Coach

Q. Which command is used to list all the files in your current directory in linux?

  • (A) pwd command
  • (B) ls -dir command
  • (C) ls command
  • (D) dir command

A

Admin • 833.24K Points
Coach

Q. Which command is used for changing the current directory in linux?

  • (A) mkdir command
  • (B) chgrp command
  • (C) chmod command
  • (D) cd command

A

Admin • 833.24K Points
Coach

Q. Which command is used to delete a directory?

  • (A) delete command
  • (B) rmdir command
  • (C) dir -rm command
  • (D) remove dir command

A

Admin • 833.24K Points
Coach

Q. Which command is used to create empty files?

  • (A) create command
  • (B) cat command
  • (C) touch command
  • (D) mkdir command

A

Admin • 833.24K Points
Coach

Q. sed command is also known as ________

  • (A) sheer editor
  • (B) service editor
  • (C) stream editor
  • (D) system editor

A

Admin • 833.24K Points
Coach

Q. Which command is used to translate file in linux?

  • (A) tp command
  • (B) th command
  • (C) tr command
  • (D) td command

A

Admin • 833.24K Points
Coach

Q. which command is used to count the number of characters in a file?

  • (A) wcount command
  • (B) wp command
  • (C) wcp command
  • (D) wc command

A

Admin • 833.24K Points
Coach

Q. Which of the following command is used to display content of a file in octal format?

  • (A) odc command
  • (B) od command
  • (C) octal command
  • (D) oct command

A

Admin • 833.24K Points
Coach

Q. Which command is used to sort the lines of data in a file in alphabetical order?

  • (A) sort command
  • (B) arrange command
  • (C) srt command
  • (D) arg command