ed command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ed: command not found
or when using sudo you get the following error message
sudo: ed: command not found
Solutions to ed: command not found
How To Fix ed: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ed is provided by ed package.
ed is:
ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files.
red is a restricted ed: it can only edit files in the current directory and cannot execute shell commands.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ed
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ed.
sudo apt -y install ed
Or if you have aptitude installed you can use the following command.
sudo aptitude install ed
Summary
In this tutorial we learn how to fix ed command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.