15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Because I was already in the command line, I decided to take advantage of a

couple of useful commands to quickly kill my frozen Notepad.

The first command I used was tasklist, which enables you to view running

processes on a local or remote system. Open up a command prompt and type

tasklist. The following is a partial example of the output:

Once I found Notepad’s PID, I was ready to kill it with the taskkill

command. See the memory-hungry notepad.exe in the preceding tasklist

output? You can kill the process using either the name or the PID. I’m using

Notepad’s PID in this example along with the force flag (/f) to make sure

Windows actually closes Notepad, instead of just asking it nicely. This is

necessary when dealing with frozen apps like my logjammed Notepad.

EXAM TIP You can use the kill command in the Windows PowerShell

command-line environment to stop a running process. Kill is actually an alias

for the Stop-Process cmdlet, although you don’t need to know that for the

exam. See Chapter 15 for a more in-depth discussion of working with the

command line and PowerShell.

Resource Monitor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!