Linux MCQs with answers Page - 4

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

Q. Which command is used to copy entire directory?

  • (A) cp -r
  • (B) cp -i
  • (C) cp
  • (D) none of these

A

Admin • 828.03K Points
Coach

Q. Which special character should be avoided during naming a file?

  • (A) .(dot)
  • (B) $
  • (C) _(underscore)
  • (D) -(Hyphen)

A

Admin • 828.03K Points
Coach

Q. Suppose I am in /etc directoy, after executing cd .(single dot), where am I now?

  • (A) /etc
  • (B) /(root)
  • (C) /home
  • (D) None of these

A

Admin • 828.03K Points
Coach

Q. mv command can be used to ?

  • (A) Move the file to different directory.
  • (B) Renaming a file
  • (C) Both a and b.
  • (D) Only a.

A

Admin • 828.03K Points
Coach

Q. Which command is used to print the login shell of an user?

  • (A) echo $SHELL
  • (B) echo $LOGIN
  • (C) echo $LSHELL
  • (D) None of the Above

A

Admin • 828.03K Points
Coach

Q. which command is used to print the current working direcotry?

  • (A) pwd
  • (B) echo $PWD
  • (C) Both A and B
  • (D) Only A

A

Admin • 828.03K Points
Coach

Q. Which command is used to set terminal IO characteristic?

  • (A) tty
  • (B) ctty
  • (C) ptty
  • (D) sty

A

Admin • 828.03K Points
Coach

Q. Which option of ls command used to view file inode number

  • (A) –l
  • (B) -o
  • (C) –a
  • (D) –i

A

Admin • 828.03K Points
Coach

Q. Which directory contains all the files needed to boot the Linux system?

  • (A) /dev
  • (B) /boot
  • (C) /bin
  • (D) none

A

Admin • 828.03K Points
Coach

Q. Which of the following is not an editor?

  • (A) expr
  • (B) vi
  • (C) emacs
  • (D) ex

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