Linux MCQs with answers Page - 3

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 command(s) is/are used to get help about a command in Linux?

  • (A) info
  • (B) man
  • (C) Both a and b
  • (D) None of these

A

Admin • 833K Points
Coach

Q. Which command is used to get the kernel version in Linux?

  • (A) uname -r
  • (B) kernel
  • (C) uname -n
  • (D) uname –s

A

Admin • 833K Points
Coach

Q. Which command is used to list all the files in your current directory(including hidden)?

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

A

Admin • 833K Points
Coach

Q. Which command is/are used to remove directory in Linux?

  • (A) rmdir
  • (B) rm -r
  • (C) only b
  • (D) Both a and b

A

Admin • 833K Points
Coach

Q. Which of the following command is used to create file in Linux?

  • (A) touch
  • (B) cat
  • (C) echo
  • (D) All of the above

A

Admin • 833K Points
Coach

Q. In Linux everything stored as a

  • (A) file
  • (B) directory
  • (C) executables
  • (D) None of the above

A

Admin • 833K Points
Coach

Q. Which of the following command can be used as an alternative to echo command?

  • (A) print
  • (B) printr
  • (C) printf
  • (D) none of these

A

Admin • 833K Points
Coach

Q. Which command is used see the list of users who are currently logged-in?

  • (A) login
  • (B) users
  • (C) who
  • (D) which

A

Admin • 833K Points
Coach

Q. Which directory in Linux contains all the config file of the system?

  • (A) /etc
  • (B) /var
  • (C) /lib
  • (D) /bin

A

Admin • 833K Points
Coach

Q. Which of the following command is used to count number of lines in a file?

  • (A) wc -l
  • (B) wc -c
  • (C) wc -w
  • (D) None of these