- List the matching processes
pgrep -fl nodeEach line shows the process number (PID) and the command. No output means nothing is running.
- Stop them
pkill -f node-f matches the whole command line, so check the list above first: it stops everything that matched.
- Only if it won't stop: force it
pkill -9 -f nodeThis skips the program's own clean-up, so unsaved work in it is lost.
Check it worked
- Check it's gone
pgrep -fl nodeNo output means it has stopped.
- List the matching processes
pgrep -af nodeEach line shows the process number (PID) and the command. No output means nothing is running.
- Stop them
pkill -f node-f matches the whole command line, so check the list above first: it stops everything that matched. Add sudo if the process belongs to another user.
- Only if it won't stop: force it
pkill -9 -f nodeThis skips the program's own clean-up, so unsaved work in it is lost.
Check it worked
- Check it's gone
pgrep -af nodeNo output means it has stopped.
- List the matching processes
Get-Process *node*Use the name without .exe. The Id column is the process number.
- Stop them
Stop-Process -Name nodeStops every process with exactly that name.
- Only if it won't stop: force it
Stop-Process -Name node -ForceThis skips the program's own clean-up, so unsaved work in it is lost. Programs started as administrator need an administrator PowerShell.
Check it worked
- Check it's gone
Get-Process node -ErrorAction SilentlyContinueNo output means it has stopped.