---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# reptyr

> Move a running process to a new terminal.
> Best used when you forget to start a long running task in `screen`.
> More information: <https://github.com/nelhage/reptyr#usage>.

- Move a running process to your current terminal:

`reptyr {{pid}}`

- Attach to a process using its name:

`reptyr $(pidof {{htop}})`
