kill Interview Questions and Answers¶
Introduction¶
These questions test whether you understand what kill does, when to use it, and how to verify the result on Linux.
Beginner Questions¶
What does kill do?
It sends signals to processes by PID.
Show a basic command.
kill 1234
Intermediate Questions¶
Name useful options.
-TERM: request graceful termination.-KILL: force immediate termination.-HUP: commonly reload or hang up a process.
Show a common administrator command.
kill -TERM 1234
Scenario-Based Questions¶
How would you handle kill -9?
kill -9 1234
What would you verify afterward?
ps -p 1234
Expected output should look similar to:
PID TTY TIME CMD
Practical Task Questions¶
Practice in a lab by running a safe version of the command, explaining the target, and showing the verification output.
Quick Review¶
kill 1234
kill -TERM 1234
ps -p 1234
Related Guides¶
Summary¶
A strong kill answer includes the purpose, a correct example, a common mistake, and a verification command with output you can interpret.