Linux Questions and Answers

Take Exam

Linux is a crucial topic for computer science students preparing for placements and exams, frequently covered in programming questions and answers sections. Understanding Linux commands, file management, permissions, and shell scripting is essential for technical roles in TCS, Wipro, and Infosys. Practicing Linux programming interview questions with answers enhances system-level understanding and problem-solving abilities. These Linux questions with answers will help students strengthen their foundational skills in operating systems and shell environments.

Linux

Showing 10 of 51 questions

21. What command is used to display the characteristics of a process?

  • au
  • ps
  • du
  • pid
Show Answer Report

22. What command is used to list the files chap0l, chap02 and chap04?

  • ls chap*
  • ls chap[124]
  • ls - x chap0[124]
  • ls chap0[124]
Show Answer Report

23. What command is used with vi editor to replace text from cursor to right

  • S
  • s
  • R
  • r
Show Answer Report

24. What sign is used to back up over typing errors in vi?

  • !
  • $
  • #
  • @
Show Answer Report

25. 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)?

  • !
  • $
  • #
  • @
Show Answer Report

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

  • sort - r
  • st
  • sh
  • sort
Show Answer Report

27. What command is used with vi editor to save file and remain in the editing mode?

  • x
  • q!
  • :w
  • :q
Show Answer Report

28. What command is used with vi editor to move back to the beginning of a word?

  • w
  • e
  • a
  • b
Show Answer Report

29. What command is used with vi editor to search a pattern in the forward direction?

  • ??
  • //
  • ?
  • /
Show Answer Report

30. What command is used to add printing jobs to the queue?

  • lpd
  • lpr
  • lpq
  • lpc
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test