Linux MCQs with answers Page - 19

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. Which Linux command is used to go back from a folder to the folder before that?

  • (A) cd..
  • (B) cd
  • (C) cd/
  • (D) chdir

A

Admin • 833K Points
Coach

Q. If you want to create a new directory named XYZ, which command will be used for this purpose?

  • (A) cd XYZ
  • (B) chdir XYZ
  • (C) mkdir XYZ
  • (D) md XYZ

A

Admin • 833K Points
Coach

Q. Which Linux command is used to create a new file?

  • (A) create
  • (B) file
  • (C) tch
  • (D) touch

A

Admin • 833K Points
Coach

Q. Which Linux command is used to copy files through the command line?

  • (A) cp
  • (B) copy
  • (C) fcp
  • (D) filecopy

A

Admin • 833K Points
Coach

Q. Which Linux command is used to move files through the command line?

  • (A) move
  • (B) mv
  • (C) ren
  • (D) loc

A

Admin • 833K Points
Coach

Q. Which is the correct command syntax to rename a file "abc.txt" to "pqr.txt"?

  • (A) mv abc.txt pqr.txt
  • (B) mv pqr.txt abc.txt
  • (C) mv -a pqr.txt abc.txt
  • (D) mv -all pqr.txt abc.txt

A

Admin • 833K Points
Coach

Q. Just like the Windows Search command, which command is used in Linux

  • (A) search
  • (B) find
  • (C) findall
  • (D) locate

A

Admin • 833K Points
Coach

Q. Which argument with locate command helps us to ignore the case while searching the file in the Linux system?

  • (A) -c
  • (B) -i
  • (C) -a
  • (D) -x

A

Admin • 833K Points
Coach

Q. Which is the correct command syntax to locate a file containing the words "hello" and "this"?

  • (A) locate -i *hello*this
  • (B) locate -i **hello**this
  • (C) locate -i *hello*this*
  • (D) locate -i **hello**this**

A

Admin • 833K Points
Coach

Q. Which Linux command is used to display the content of a file?

  • (A) display
  • (B) show
  • (C) echo
  • (D) cat

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ