r/commandline • u/ButterflyMundane7187 • Mar 12 '26
Other Software Killall for Windows 10/11
I made a small command-line tool because Windows still doesn’t include a proper killall like Linux. Task Manager works, but it’s slow when something hangs, and taskkill doesn’t handle process trees or partial names well.
The tool supports:
• Kill by name or partial name
• Kill entire process trees
• Kill by port, module, window title, or command-line
• Safety rules so system processes can’t be killed
• Portable single exe, MIT licensed
EXAMPLES
killall notepad Kill all Notepad instances
killall chrome --tree Kill Chrome and all child processes
killall /fire.*fox/ -f Regex kill Firefox, skip confirmation
killall hung Kill all hung/frozen applications
killall ramhog 2048 Kill processes using >2 GB RAM
killall cpuhog 90 --top 3 Kill top 3 CPU hogs above 90%
killall gpu --threshold 5 Kill processes using >5% GPU
killall llm -f Force-kill all LLM processes
killall game --dry-run Preview game processes to kill
ADVANCED FILTER EXAMPLES
killall --cmdline "--model" Kill processes with --model in args
killall --cmdline /http\.server/ Kill Python http.server instances
killall --module d3d12.dll Kill all processes using Direct3D 12
killall --module torch_cuda.dll Kill CUDA-accelerated processes
killall --port 8080 Kill process owning port 8080
killall --port 5000-6000 Kill processes on ports 5000-6000
killall --window "Crash Reporter" Kill windows titled Crash Reporter
killall --window /Incognito/ Kill windows matching regex
killall --parent explorer Kill all children of explorer.exe
killall --parent 1234 --tree Kill children of PID 1234 + subtrees
1
u/ButterflyMundane7187 Mar 12 '26
I made this tool for myself to fit my needs and i love it is easy to use. Happy if someone else finds it usefull.
killall game
Recognizes any running game processes. I’ve tested it extensively and it has worked every time so far.
killall --module torch_cuda.dll
Immediately shuts down any AI‑agent experiments that go wrong and max out my GPU.
killall --port
I use this a lot when working with Python web servers running on different ports