Linux MCQs with answers Page - 44

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 option of ls command used to view file inode number ?

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

A

Admin • 833.24K Points
Coach

Q. The commonly used UNIX commands like date, Is, cat, etc. are stored in

  • (A) /tmp directory
  • (B) /unixdirecotry
  • (C) /bin and /usr/bin directories
  • (D) /dev directory

A

Admin • 833.24K Points
Coach

Q. Which command is used to concatenate all files beginning with the string ‘emp’ and followed by non-numeric characters?

  • (A) catemp[a-z]
  • (B) cateemp[x-z]
  • (C) more [emp][!0-9]
  • (D) catemp{!0-9]

A

Admin • 833.24K Points
Coach

Q. Which command will be used to match the pattern agarwal, Aggarwal, Agggarwal and agrawal in the file named empl.1st?

  • (A) grep “[aA]99*[ar][ra]wal” empl.1st
  • (B) grepag[ra][ar]wal empl.1st
  • (C) cutagrawal empl.1st
  • (D) grepag* empl.1st

A

Admin • 833.24K Points
Coach

Q. Which command is used to select those lines where the data lies between 7000 and 7999 at the end of the line of file empl.lit.

  • (A) grep ^7… empl.1st
  • (B) grep “7…$” empl.1st
  • (C) grep “7…^” empl.1st
  • (D) grep “$7…” empl.1st

A

Admin • 833.24K Points
Coach

Q. Which command is used to select those lines that begin with a 2 in the tre file empl.1st?

  • (A) grep “2^” empl.1st
  • (B) grep “7^” empl.1st
  • (C) grep “2…” empl.1st
  • (D) grep “^2” empl.1st

A

Admin • 833.24K Points
Coach

Q. Which of the following commands is used to update access and modification times of a file?

  • (A) cat
  • (B) touch
  • (C) wc
  • (D) grep

A

Admin • 833.24K Points
Coach

Q. The command that can be used to restrict incoming messages to a user is

  • (A) sleep
  • (B) grep
  • (C) halt
  • (D) mesg

A

Admin • 833.24K Points
Coach

Q. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

  • (A) grep
  • (B) tr
  • (C) sort
  • (D) tee

A

Admin • 833.24K Points
Coach

Q. What command is used to save the standard output in a file, as well as display it on the terminal?

  • (A) more
  • (B) cat
  • (C) grep
  • (D) tee

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