LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dtach

minimal detachable terminal session manager

TLDR

Create new session
$ dtach -c [/tmp/session.sock] [command]
copy
Attach to existing session
$ dtach -a [/tmp/session.sock]
copy
Create session, don't attach
$ dtach -n [/tmp/session.sock] [command]
copy
Attach, create if missing
$ dtach -A [/tmp/session.sock] [command]
copy
Set custom detach key
$ dtach -c [/tmp/session.sock] -e '^a' [command]
copy
Create session with no detach key
$ dtach -c [/tmp/session.sock] -E [command]
copy

SYNOPSIS

dtach [options] socket [command [args]]

DESCRIPTION

dtach provides detachable terminal sessions similar to screen or tmux, but focused solely on the detach/attach functionality. It creates a Unix socket for session communication.The minimalist approach makes dtach lighter than alternatives when only session detachment is needed, without window management or other features.

PARAMETERS

-c socket

Create new session and attach.
-n socket
Create new session without attaching.
-a socket
Attach to existing session.
-A socket
Attach or create if missing.
-r method
Redraw method (none, ctrl_l, winch).
-e char
Set detach character.
-E
Disable detach character.
-z
Disable suspend key handling.

INSTALL

sudo apt install dtach
copy
sudo dnf install dtach
copy
sudo apk add dtach
copy
sudo zypper install dtach
copy
brew install dtach
copy
nix profile install nixpkgs#dtach
copy

CAVEATS

No window management. No scrollback buffer. Socket files persist after session ends. Single client at a time by default. No built-in session listing.

HISTORY

dtach was created by Ned T. Crigler in 2001 as a minimal alternative to GNU Screen. It emerged from the desire for session detachment without screen's complexity. The tool is useful when combining with other terminal multiplexers or for simple session persistence.

SEE ALSO

screen(1), tmux(1), abduco(1), nohup(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid