this post was submitted on 23 Oct 2026
23 points (96.0% liked)

Linux

15332 readers
78 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

Is such a think possible under Linux?

Yeah I know I can tmux / nohup, and I know that if I dig deep enough I can manually reattach some of the file descriptors under /proc to get a working terminal for that process again....

... but is there a tool that automatically does this somehow?

e.g.

run -d ./bash long-running.sh  >  proc.file
### later
run -a  proc.file

Edit: Y'all really know how to recreate the feeling of StackOverflow circa 2018

you are viewing a single comment's thread
view the rest of the comments
[โ€“] matcha_addict@lemy.lol 3 points 5 days ago (1 children)

dtach is exactly what you're looking for.

There are other similar tools. I personally found zmx to be the best, but it's more feature rich than dtach, and might be more than you want. Dtach is pretty minimal. But my only issue with it is it struggles with reloading a terminal session for a TUI that needs non trivial redrawing.

[โ€“] tetris11@feddit.uk 1 points 5 days ago

Yeah! It got mentioned earlier, and I've started playing with it -- it's not perfect like you say, but it is good enough for what I need