Commands / System

Get-Process

List running processes

beginner System Aliases gpsps

Get-Process
 Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
Works on
WindowsLinuxmacOS
PowerShell
5.1 and later
Reference
Microsoft Learn: Get-Process

What you'll see

 NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName
 ------    -----      -----     ------      --  -- -----------
    112   412.30     398.15     812.45    9876   1 chrome
     78   190.02     212.60     301.10    4412   1 Teams
     45    96.44     120.81     120.32    7720   1 explorer
     32    60.18      75.03      44.07    2210   1 OUTLOOK

Lists processes. -Name pwsh filters by name (no .exe). WorkingSet is memory in bytes.

Try this

Get-Process -Name explorer | Format-List *

Coming from another shell

ShellWhat you might type
bash / zshps aux --sort=-%cpu | head
cmd.exetasklist

More in From bash and From cmd.

Related commands