e command not found

In this troubleshooting guide we learn how to fix e command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

e: command not found

or when using sudo you get the following error message

sudo: e: command not found

Solutions to e: command not found

How To Fix e: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu e is provided by e-wrapper package.

e-wrapper is:

All or almost all Unix editors support the syntax of “editor +42 file”, to open the given file and start with the cursor at line 42. Alas, the syntax programs that output such data use is different: either “file:42: Something” or “file:42:1: Something”, :1 being a column number.

This wrapper will recognize such references and call your $EDITOR using the

  • notation. Thus, once you see an error message, you can copy&paste the first word of it without having to manually adjust. Especially if your mouse selection is configured to allow ‘:’, it’s a single triple-click (L+L+M), and still pretty handy if not.

If your editor allows multi-open, “e” can also handle pipelines such as:

  • git grep MEOW|e -:
  • make 2>&1 >/dev/null|grep error:|e -::

Also, because of its short name, it reduces the typing needed to start the editor by half if you use vi, by 80% if emacs or jstar – and that’s by far the most frequent command an Unix user does.

To fix this problem, we can install more using the command below.

sudo apt-get -y install e-wrapper

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install e-wrapper.

sudo apt -y install e-wrapper

Or if you have aptitude installed you can use the following command.

sudo aptitude install e-wrapper

Summary

In this tutorial we learn how to fix e command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.