Back to Blog
Arnošt Havelka

Process Mgmt

View and kill running tasks with tasklist and taskkill.

Start Interactive Lesson
Process Mgmt

Just like Task Manager, but for the CLI. tasklist sees what's running, and taskkill stops it.

1. Tasklist

Displays a list of currently running processes on the local computer or on a remote computer.

Try the command

List active tasks!

Build the command
tasklist
Terminal
C:\Users\User>tasklist /fi "STATUS eq RUNNING" /v

2. Taskkill

Ends one or more tasks or processes. Use with caution!

Try the command

Force close Notepad!

Build the command
taskkill
Terminal
C:\Users\User>taskkill /im notepad.exe /pid 1234 /f

Real-World Scenario: Killing Unresponsive Apps

Sometimes an app hangs and you can't click "Close".

  1. Find the process ID (PID)
  2. Kill it.
Command Prompt
C:\Users\User>tasklist | find "notepad"
Command Prompt
C:\Users\User>taskkill /pid 5420 /f

Knowledge Check

1 / 3

Which command LISTS running processes?

References

These documentation links provide authoritative details for the commands used in this article.