Linux Questions and Answers
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
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]
23. What command is used with vi editor to replace text from cursor to right
- S
- s
- R
- r
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)?
- !
- $
- #
- @
26. What command is used to sort the lines of data in a file in alphabetical order?
- sort - r
- st
- sh
- sort
27. What command is used with vi editor to save file and remain in the editing mode?
- x
- q!
- :w
- :q
28. What command is used with vi editor to move back to the beginning of a word?
- w
- e
- a
- b
29. What command is used with vi editor to search a pattern in the forward direction?
- ??
- //
- ?
- /