How to exit a Linux terminal while keeping long tasks running

Photo by Gabriel Heinzer on Unsplash

Yesterday I was copying some files on my home server using a typical ssh session: run a Linux terminal, ssh into the server, cp, done. The issue was that the copy would need to run for a long time and my client computer would normally go to sleep after a few minutes, long before the copy operation would have a chance to finish.




Still planning that trip to the Moon.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Reducing typo errors with enum

Data Locality Optimisation in Map-Reduce

Why Domain modeling matters

Convert Parquet Files to CSV using Python!

Python Source Code Obfuscation

5 Best WordPress Courses for Beginners and Experienced Website Developers in 2022

best WordPress courses for Beginners

A Framework for Gamifying Software Engineering activities

Modify the address space and subnet of an AKS cluster(with kubenet plugin and Azure managed VNET)…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Radu Zaharia

Radu Zaharia

Still planning that trip to the Moon.

More from Medium

How to Organize Cluttered Files with Just One Command in Linux

What are Linux signals and how do they work?

Linux: How to compress data in a remote server and save them locally in one command!

A headless Raspberry Pi workflow