GSEC · Question #203
You work as a Network Administrator for World Perfect Inc. The company has a Linux-based network. You have configured a Linux Web server on the network. A user complains that the Web server is not…
The correct answer is A. killall httpd. killall terminates all running processes matching a given name, making it the correct tool to stop multiple HTTPD instances at once.
Question
You work as a Network Administrator for World Perfect Inc. The company has a Linux-based network. You have configured a Linux Web server on the network. A user complains that the Web server is not responding to requests. The process list on the server shows multiple instances of the HTTPD process. You are required to stop the Web service. Which of the following commands will you use to resolve the issue?
Options
- Akillall httpd
- Bendall httpd
- Ckill httpd
- Dend httpd
How the community answered
(53 responses)- A77% (41)
- B13% (7)
- C6% (3)
- D4% (2)
Why each option
killall terminates all running processes matching a given name, making it the correct tool to stop multiple HTTPD instances at once.
The killall command sends a signal (SIGTERM by default) to every process whose name matches the argument, so killall httpd will terminate all running HTTPD instances simultaneously. This resolves the issue of multiple HTTPD processes without requiring the administrator to find and kill each PID individually.
endall is not a valid Linux command; executing it would result in a 'command not found' error.
kill requires a numeric process ID (PID) as its argument, not a process name; passing a name like 'httpd' directly will fail or produce an error.
end is not a valid Linux command; it does not exist in standard Linux distributions.
Concept tested: Linux killall command for process termination
Source: https://man7.org/linux/man-pages/man1/killall.1.html
Topics
Community Discussion
No community discussion yet for this question.