步骤:
1.启动一个process, 如top,按CTRL-Z 将target process 放入background task
2. resume the process in background: bg
3. disown top
4. open an session
5. reptyr pidoftarget
参考:
https://blog.nelhage.com/2011/01/reptyr-attach-a-running-process-to-a-new-terminal/