mcedit command not found

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

Introduction

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

mcedit: command not found

or when using sudo you get the following error message

sudo: mcedit: command not found

Solutions to mcedit: command not found

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

In Ubuntu mcedit is provided by mc package.

mc is:

GNU Midnight Commander is a text-mode full-screen file manager. It uses a two panel interface and a subshell for command execution. It includes an internal editor with syntax highlighting and an internal viewer with support for binary files. Also included is Virtual Filesystem (VFS), that allows files on remote systems (e.g. FTP, SSH servers) and files inside archives to be manipulated like real files.

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

sudo apt-get -y install mc

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

You can also use apt command to install mc.

sudo apt -y install mc

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

sudo aptitude install mc

Summary

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