Linux Questions and Answers

Practice Mode
Showing 10 of 51 questions
Q21
What command is used to display the characteristics of a process?
  • A au
  • B ps
  • C du
  • D pid
Answer: Option B
Q22
What command is used to list the files chap0l, chap02 and chap04?
  • A ls chap*
  • B ls chap[124]
  • C ls - x chap0[124]
  • D ls chap0[124]
Answer: Option C
Q23
What command is used with vi editor to replace text from cursor to right
  • A S
  • B s
  • C R
  • D r
Answer: Option C
Q24
What sign is used to back up over typing errors in vi?
  • A !
  • B $
  • C #
  • D @
Answer: Option C
Q25
What sign is used to erase or kill an entire line you have typed and start you are on a new line (but not display a new prompt)?
  • A !
  • B $
  • C #
  • D @
Answer: Option D
Q26
What command is used to sort the lines of data in a file in alphabetical order?
  • A sort - r
  • B st
  • C sh
  • D sort
Answer: Option D
Q27
What command is used with vi editor to save file and remain in the editing mode?
  • A x
  • B q!
  • C :w
  • D :q
Answer: Option C
Q28
What command is used with vi editor to move back to the beginning of a word?
  • A w
  • B e
  • C a
  • D b
Answer: Option D
Q29
What command is used with vi editor to search a pattern in the forward direction?
  • A ??
  • B //
  • C ?
  • D /
Answer: Option D
Q30
What command is used to add printing jobs to the queue?
  • A lpd
  • B lpr
  • C lpq
  • D lpc
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test