sed command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sed: command not found
or when using sudo you get the following error message
sudo: sed: command not found
Solutions to sed: command not found
How To Fix sed: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sed is provided by sed package.
sed is:
sed reads the specified files or the standard input if no files are specified, makes editing changes according to a list of commands, and writes the results to the standard output.
To fix this problem, we can install more using the command below.
sudo apt-get -y install sed
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install sed.
sudo apt -y install sed
Or if you have aptitude installed you can use the following command.
sudo aptitude install sed
Summary
In this tutorial we learn how to fix sed command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.