GSEC practice question 28 of 35
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…
Full set: 383 questionsDomain Linux: Security and Administration
The killall command is the correct tool for this scenario. It is designed to terminate all running processes that match a specific name. Since the server has multiple instances of the httpd process, killall httpd will send a termination signal (SIGTERM by default) to every one of them, effectively stopping the web service. This command is more efficient than finding and killing each process individually by its Process ID (PID).
B. endall httpd: endall is not a standard or valid command in the Linux operating system for process management.
C. kill httpd: The kill command requires a numeric Process ID (PID) as its argument, not a process name like httpd.
D. end httpd: end is not a standard or valid command in the Linux operating system for process management. ---
1. Red Hat Enterprise Linux 8 Documentation. "Configuring basic system settings
" Chapter 9. Managing processes
Section 9.4.2. Terminating a process by name. The documentation explicitly states
"To terminate a process by name
use the killall command
" and provides the example: $ killall httpd.
2. The Linux killall(1) man page. The official manual page for the command describes its function as to "kill processes by name." It confirms that the command sends a signal to all processes running any of the specified command names.
3. MIT OpenCourseWare. "The Missing Semester of Your CS Education" (January 2020)
Lecture 2: Shell Tools and Scripting. The lecture notes on process management introduce kill for terminating processes via PID and mention pkill and killall as more convenient alternatives that can operate on process names.
Keep practicing
Take the free GSEC practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GSEC practice questions
- Question 1What is the key difference between Electronic Codebook mode and other block cipher modes …
- Question 2Which of the following systems acts as a NAT device when utilizing VMware in NAT mode?
- Question 4You are doing some analysis of malware on a Unix computer in a closed test network. The I…
- Question 5You work as a Network Administrator for McNeil Inc. The company has a Linux-based network…
- Question 6Which of the following services resolves host name to IP Address?
- Question 7What does PowerShell remoting use to authenticate to another host in a domain environment?
