Description
Moves an already running terminal program into another terminal session, which can save work when a command was started in the wrong place or a shell needs to be recovered. It is useful for administrators and developers managing long-running terminal tasks.
Attaching to another process changes terminal control and may require permissions that affect running programs. Use it carefully on important jobs, and avoid interfering with processes owned by other users.