dtach command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dtach: command not found
or when using sudo you get the following error message
sudo: dtach: command not found
Solutions to dtach: command not found
How To Fix dtach: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dtach is provided by dtach package.
dtach is:
dtach is a tiny program that emulates the detach feature of screen, allowing you to run a program in an environment that is protected from the controlling terminal and attach to it later. dtach does not keep track of the contents of the screen, and thus works best with programs that know how to redraw themselves.
dtach does not, however, have the other features of screen, such as its support of multiple terminals or its terminal emulation support. This makes dtach extremely tiny compared to screen, making it more easily audited for bugs and security holes, and also allows it to fit in environments where space is limited, such as on rescue disks.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dtach
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dtach.
sudo apt -y install dtach
Or if you have aptitude installed you can use the following command.
sudo aptitude install dtach
Summary
In this tutorial we learn how to fix dtach command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.