Often a long running process like scp, zip or backup etc take very long to complete and sometimes SSH session breaks causing breaks and data loss. Its very easy to do this. After running a command, do the following:
- Press Ctrl + Z — this will pause the process
- Type bg —- this will resume and assign process to background
- To check background processes type jobs
- Now you can exit SSH session