Soru

Zorluk: OrtaMicrosoft Command-Line Tools

A system administrator is troubleshooting a hung application named app_service.exe on a Windows workstation. Working exclusively from an elevated Command Prompt, the administrator needs to identify the Process Identifier (PID) of the non-responsive process and then forcefully terminate it along with any child processes it launched. Which of the following commands should the administrator use to accomplish these tasks? (Select TWO.)

  1. tasklist /fi "imagename eq app_service.exe"Cevap
  2. taskkill /pid [PID] /f /tCevap
  3. C
    ps aux | grep app_service.exe
  4. D
    resmon /kill /imagename app_service.exe

Cevap

The administrator should run 'tasklist /fi "imagename eq app_service.exe"' to identify the PID, followed by 'taskkill /pid [PID] /f /t' to terminate the process and its child processes.
To identify the process PID from the command line, the tasklist utility with the filter flag (/fi) is used to locate 'imagename eq app_service.exe'. To forcefully terminate that process along with all of its child processes, the taskkill command with the /pid flag, /f (force), and /t (tree) flags must be executed.

Adım Adım Çözüm

1
Filter running processes by name using the tasklist command
Obtain the Process Identifier (PID) corresponding to app_service.exe
Before killing a specific hung process safely by PID, its process ID must be identified from the running tasks list.
2
Execute taskkill specifying the PID, /f (force), and /t (tree/child processes)
Forcefully terminate app_service.exe and all child processes created by it
The /f flag overrides unresponsive states to force closure, while /t ensures sub-processes spawned by the application are also closed.

Anahtar Kavram

Identifying and terminating processes via Windows Command Line using TASKLIST and TASKKILL
Bu soruyu puanla