Linux MCQs with answers Page - 45

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. What command is used to count just the number of lines contained in a file?

  • (A) wc –r
  • (B) wc –w
  • (C) wc –c
  • (D) wc –l

A

Admin • 833.24K Points
Coach

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

  • (A) sort
  • (B) sh
  • (C) st
  • (D) sort –r

A

Admin • 833.24K Points
Coach

Q. Which of the following command lists the last 10 lines of a file?

  • (A) tail
  • (B) cat
  • (C) head
  • (D) grep

A

Admin • 833.24K Points
Coach

Q. Which statement resumes the next iteration of a for, while, select, or untill loop?

  • (A) command
  • (B) complete
  • (C) break
  • (D) continue

A

Admin • 833.24K Points
Coach

Q. Which command can create environment variable?

  • (A) export
  • (B) set
  • (C) read
  • (D) none of the mentioned

A

Admin • 833.24K Points
Coach

Q. Which of the following is not a major Unix shell?

  • (A) Korn Shell
  • (B) Bash Shell
  • (C) C Shell
  • (D) X Shell

A

Admin • 833.24K Points
Coach

Q. Which was the first Unix shell?

  • (A) Korn Shell
  • (B) Bash Shell
  • (C) C Shell
  • (D) X Shell

A

Admin • 833.24K Points
Coach

Q. The purpose of the PATH variable is to

  • (A) Show the current directory
  • (B) Show the directory path of a file
  • (C) Tells the shell what directories to search when a command is entered
  • (D) Both A and B

A

Admin • 833.24K Points
Coach

Q. What special character is used to designate the users home directory in the C shell?

  • (A) $
  • (B) &
  • (C) ~
  • (D) @

A

Admin • 833.24K Points
Coach

Q. The shell in the Unix system is the

  • (A) Outer layer of a seed
  • (B) Provides a prompt
  • (C) User interface with the operating system
  • (D) Both (b) and (c)

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