Linux MCQs with answers Page - 60

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 clears old packages from the Debian archives?

  • (A) dselect
  • (B) dpkg -autoclean
  • (C) apt-get autoclean
  • (D) dpkg -clean

A

Admin • 833.24K Points
Coach

Q. alien supports which of the following package formats?
A. RPM
B. .deb
C. BSD
D. .tgz

  • (A) A and B
  • (B) A and C
  • (C) A, B and D
  • (D) A, B, C and D

A

Admin • 833.24K Points
Coach

Q. Which command converts an RPM package to Debian format?

  • (A) alien -d package.rpm
  • (B) alien -d package.deb
  • (C) alien -t package.rpm
  • (D) alien -r package.rpm

A

Admin • 833.24K Points
Coach

Q. Which of the following would be used to locate the following words: and, made, named, standard?

  • (A) a.d
  • (B) [a..d]
  • (C) a.*d
  • (D) a*d

A

Admin • 833.24K Points
Coach

Q. Which command would search lines 2 through 20 of the file records for the characters 1st and replace them with the characters first?

  • (A) sed ‘2,20s/1st/first/’ records
  • (B) sed ‘s2,20/1st/first/’ records
  • (C) sed ‘2-20s/1st/first/’ records
  • (D) sed ‘s2-20/1st/first/’ records

A

Admin • 833.24K Points
Coach

Q. Which command would separate the file researchpaper into multiple files, each containing 60 lines?
A. split -60 researchpaper
B. split -C 60b researchpaper
C. split -C 60 researchpaper
D. split -l 60 researchpaper

  • (A) A and B
  • (B) B and C
  • (C) A and D
  • (D) A, B, C and D

A

Admin • 833.24K Points
Coach

Q. Which utility is used to combines the lines from two files?
A. split
B. join
C. paste
D. cut

  • (A) A and B
  • (B) B and C
  • (C) A and D
  • (D) A, B, C and D

A

Admin • 833.24K Points
Coach

Q. Which of the following would send the data from the ls command to the file myfiles?

  • (A) ls | xargs myfiles
  • (B) ls < myfiles
  • (C) ls > myfiles
  • (D) ls | myfiles

A

Admin • 833.24K Points
Coach

Q. Which of the following would be used to view the last five lines of the file myfiles?

  • (A) tail -5 myfiles
  • (B) tac -5 myfiles
  • (C) tail myfiles
  • (D) tac myfiles

A

Admin • 833.24K Points
Coach

Q. Which of the following allows you to view the file myfiles in octal format?
A. od myfiles
B. od -t o myfiles
C. od -t x myfiles
D. od -o myfiles

  • (A) A and B
  • (B) B and C
  • (C) A and D
  • (D) A, B, C and D

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