e2cp command not found

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

Introduction

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

e2cp: command not found

or when using sudo you get the following error message

sudo: e2cp: command not found

Solutions to e2cp: command not found

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

In Ubuntu e2cp is provided by e2tools package.

e2tools is:

E2tools is a simple set of utilities to read, write, and manipulate files in an ext2/ext3 filesystem.

The purpose of these utilities is manipulating ext2/ext3 filesystems from userspace without the need for mounting them, so that they can be used directly by normal users.

Included utilities are e2cp, e2mv, e2rm, e2mkdir, e2ln, e2ls and e2tail.

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

sudo apt-get -y install e2tools

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

You can also use apt command to install e2tools.

sudo apt -y install e2tools

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

sudo aptitude install e2tools

Summary

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