Linux MCQs with answers Page - 63

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 of the following would alphabetize the file mylist, number the list, and then separate it into files each with 60 lines?

  • (A) sort mylist | nl | tee lists | split -60 lists
  • (B) sort mylist | nl | split -60 lists
  • (C) sort mylist > nl > split -60 > lists
  • (D) sort mylist | nl > -60 lists

A

Admin • 833.24K Points
Coach

Q. Which utility is used to provide a total count of all lines in a file?

  • (A) tr
  • (B) wc
  • (C) ln
  • (D) nl

A

Admin • 833.24K Points
Coach

Q. Which utility attempts to create lines of equal length throughout a file?

  • (A) expand
  • (B) fmt
  • (C) ln
  • (D) nl

A

Admin • 833.24K Points
Coach

Q. Which utility would be easily used to replace all lowercase letters in a file with uppercase letters?

  • (A) tr
  • (B) tac
  • (C) sed
  • (D) cut

A

Admin • 833.24K Points
Coach

Q. Which of the following is used to verify that a file is alphabetized?

  • (A) sort -m
  • (B) sort -v
  • (C) sort -d
  • (D) sort -c

A

Admin • 833.24K Points
Coach

Q. Which of the following should surround regular expressions to ensure that they are processed properly?

  • (A) single quotation marks
  • (B) double quotation marks
  • (C) backslashes
  • (D) parentheses

A

Admin • 833.24K Points
Coach

Q. Which type of file system is used for accessing remote systems?

  • (A) nfs
  • (B) swap
  • (C) hpfs
  • (D) ext2

A

Admin • 833.24K Points
Coach

Q. Which of the following would represent the third partition on the second IDE drive?

  • (A) /dev/hda5
  • (B) /dev/hdc2
  • (C) /dev/sdc2
  • (D) /dev/hdb3

A

Admin • 833.24K Points
Coach

Q. Which of the following is the pointer used to identify the location of data in files?

  • (A) File system
  • (B) Partition
  • (C) Inode
  • (D) Superblock

A

Admin • 833.24K Points
Coach

Q. Logical drives are contained within what type of partition?

  • (A) Root
  • (B) Swap
  • (C) Extended
  • (D) Primary