GIAC Security Essentials Certification (GSEC) — Question 18

You work as a Network Administrator for Tech Perfect Inc. The company has a Linux-based network. You want to kill a process running on a Linux server. Which of the following commands will you use to know the process identification number (PID) of the process?

Answer options

Correct answer: B

Explanation

The correct command to find the process identification number (PID) of a running process on a Linux server is 'ps', as it displays currently running processes along with their PIDs. 'killall' is used to terminate processes by name, 'getpid' is not a standard command for listing processes, and 'kill' requires the PID to terminate a specific process, which you must obtain first.