Skip to content

Instantly share code, notes, and snippets.

@bracca95
Last active May 29, 2024 15:43
Show Gist options
  • Save bracca95/267aee3be05f45dfeff179760d00bee3 to your computer and use it in GitHub Desktop.
Save bracca95/267aee3be05f45dfeff179760d00bee3 to your computer and use it in GitHub Desktop.
Some troubleshooting techniques for background processes on Windows

Windows Troubleshooting

Using background processes on windows, especially if connected through ssh, might be painful. Here's a collection of (some of) the problems that I ran into while using Windows.

You can get the amount of available RAM (free equivalent command) by typing:

wmic ComputerSystem get TotalPhysicalMemory

Stop a process

When you start a background process with start (nohup equivalent) you might want to stop it:

:: identify the processes (supposing that python.exe is what you want to locate)
wmic process where "name='python.exe'" get ProcessId,CommandLine

:: kill it with
taskkill /PID <PID> /F

Remove a folder with its content

rm -rf <fold> equivalent:

rd /s /q <fold>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment