.Dd $Mdocdate$ .Dt DTCH 1 .Os "Causal Agency" .Sh NAME .Nm dtch , .Nm atch .Nd detached sessions .Sh SYNOPSIS .Nm dtch Op Ar name Op Ar "command ..." .Nm atch Op Ar name .Sh DESCRIPTION .Nm dtch spawns the .Ar command (by default, the user's shell) inside a new PTY. It then lends control of the detached PTY to .Nm atch over a UNIX-domain socket. .Nm dtch should be run as a background job or with .Xr nohup 1 . .Pp .Nm atch attaches to the .Nm dtch session with the corresponding .Ar name . To detach from a session, type .Ic ^Q . .Sh FILES .Bl -tag .It Pa ~/.dtch Location of UNIX-domain sockets for each session. .El .Sh EXAMPLES .Dl dtch foo vim & .Dl atch foo .Sh SEE ALSO .Xr nohup 1 , .Xr screen 1 , .Xr forkpty 3