Dtach
dtach is a program that emulates the detach feature of screen, allowing you to run a program in an environment that is protected from the controlling terminal. Useful for remote sessions that you want to persist after disconnecting.
dtach: Emulate Screen Detach Feature
A program to create isolated environments for running programs, useful for persistent remote sessions
What is Dtach?
Dtach is a small utility program that emulates the detach feature of GNU screen. It allows you to run a program in an environment that is protected from the controlling terminal and attach to it later. Some key features of dtach:
- It keeps programs running even if their controlling terminal hangs up
- Programs keep running even if SSH connection dies or the session is closed
- You can reconnect to detached programs multiple times
- Lightweight with very few dependencies compared to GNU screen
Some examples of how dtach can be useful:
- Run long-running processes over SSH without having them interrupted if your connection drops
- Deploy daemons in a terminal-independent environment
- Provides similar protection to nohup/disown but with the ability to reattach later
So in summary, dtach is a simple but effective utility for detaching processes from terminals, allowing them to persist after you disconnect. Its lightweight nature makes it popular for remote SSH sessions and server deployments.
Dtach Features
Features
- Allows processes to continue running after terminal is closed/disconnected
- Can reattach to a detached process later
- Lightweight and simple
- Works over SSH
Pricing
- Open Source
Pros
Enables remote sessions to persist without screen
Good for simple process detach/reattach needs
Small memory and resource footprint
Cons
Less full-featured than screen
No multiplexing of sessions like screen
Limited configuration options
Official Links
Reviews & Ratings
Login to ReviewThe Best Dtach Alternatives
View all dtach alternatives with detailed comparison →
Top Os & Utilities and Terminal Utilities and other similar apps like Dtach
Here are some alternatives to Dtach:
Suggest an alternative ❐Tmux
Tmux is a terminal multiplexer for Unix-like operating systems. It allows multiple terminal sessions to be accessed simultaneously in a single window. Tmux is useful for:Running multiple programs from one terminal window and switching between them easilyDetaching and reattaching terminal sessionsSplitting terminal windows horizontally and verticallySynchronizing input between multiple terminalsPersisting...
GNU Screen
GNU Screen is a terminal multiplexer application that was first released in 1987. It allows a user to multiplex several virtual consoles, accessed via a single TTY device. This enables a user to access multiple separate terminal sessions inside a single terminal window or remote SSH session.Some key features of...
Wemux
Wemux is an open-source terminal multiplexer designed for collaborative command-line work. It allows multiple users to join a shared terminal session from different computers or locations. Once connected to the same wemux session, users can see each other's terminal input and output in real-time.Some key features of Wemux include:Session sharing...
Zellij
Zellij is an open-source terminal multiplexer and tiling window manager designed specifically for the terminal. It allows you to split your terminal into resizable panes and windows to suit your workflow.Some key features of Zellij include:Customizable grid layouts and pane arrangementsSmooth pane resizing and navigationTab support for managing sessionsPlugin architecture...
Mtm
mtm (My Tiny Mediainfo) is an open-source media metadata tracker and media asset manager. It is designed to help users organize, catalog, and track detailed metadata and information about their personal media libraries including movies, TV shows, video games, books, music, and more.Some key features of mtm include:Add, edit, categorize,...
Abduco
Abduco is a lightweight terminal session manager for Linux and other Unix-like operating systems. It allows you to detach a running terminal session and reattach to it later, allowing the session to continue running in the background.Some key features of abduco include:Detach from sessions and reattach later, even from a...