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 TotalPhysicalMemoryWhen 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> /FThere might be situations in which you wanted, for instance, to delete a directory but the OS returns an error complaining that another process is locking the resource. In this case:
- Win + R,
- type
resmon.exe(resource monitor), - start writing the resource you need in the search bar in the middle of the window,
- kill all the process that are holdingn the resource.
rm -rf <dir> equivalent:
rd /s /q <dir>cp -r <src_fold> <dst_fold> equivalent is even more absurd:
xcopy <src_dir> <dst_dir> /E /I