Which Linux command is used to kill a process by its name? MCQ with Answer and Explanation

Which Linux command is used to kill a process by its name?
A. pkill
B. term
C. kill
D. killall
Answer: Option A
Solution (By JKSSB Mock Tests)
pkill kills processes based on name or other attributes; killall is similar but may behave differently; kill uses PID.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
Which of the following is a disadvantage of paging?
A. Internal fragmentation
B. Complex memory management
C. External fragmentation
D. Slow allocation

Correct Answer: Option A


Explanation:
Paging causes internal fragmentation because the last page of a process may not be fully used; external fragmentation is eliminated.

This question belongs to: Computer Operating Systems
Question #2
Which Linux command is used to display the manual page of another command?
A. whatis
B. info
C. man
D. help

Correct Answer: Option C


Explanation:
The 'man' command (manual) displays the manual pages for commands, providing detailed documentation.

This question belongs to: Computer Operating Systems
Question #3
Which process state defines a task that is currently waiting in line to be assigned to a CPU core by the operating system scheduler?
A. Blocked
B. Terminated
C. Running
D. Ready

Correct Answer: Option D


Explanation:
A process is in the 'Ready' state when it is prepared for execution and is waiting to be allocated a time slice on a processor core.

This question belongs to: Computer Operating Systems