This is some code to copy a file from a remote server to your local c drive
scp username@remote_server:/path/to/source/file.txt C:\path\to\destination\
To check if your process is still running on linux machine
Replace "process_name" with the name of the process you are searching for. The aux options provide more detailed information.
ps aux | grep "process_name"
or this version will only show any results if it is running
ps aux | grep "process_name" | grep -v grep
example will be
ps aux | grep "python"
To copy files use cp -v filename.txt filename.bak verbose mode to see what is copied as it is done
To remove/delete a file use rm filename.ext
To see your process is running ps aux | grep “python” | grep -v grep