nerdexam
GIAC

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.

Linux and Cryptography

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)
  • A
    77% (41)
  • B
    13% (7)
  • C
    6% (3)
  • D
    4% (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.

Akillall httpdCorrect

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.

Bendall httpd

endall is not a valid Linux command; executing it would result in a 'command not found' error.

Ckill httpd

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.

Dend httpd

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

#killall#Linux process management#HTTPD#service control

Community Discussion

No community discussion yet for this question.

Full GSEC Practice