Reputation: 2622
Is it possible to move a process from one terminal to another in Linux? For example, if I have executed the "top" command via a gnome-terminal window, I want to move the output shown in the gnome-terminal window to a TTY terminal.
Upvotes: 2
Views: 3181
Reputation: 20520
It's too late by the time you've already executed it, but if you recognise in advance that you might want to move it, you can use
screen top
to run top
, and then detach from the running process with Ctrl-A and D. After that, you can run
screen -r
from any terminal on the same machine to reattach.
It's very powerful, and does a lot more than just that.
Upvotes: 3