gedit command not found

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

Introduction

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

gedit: command not found

or when using sudo you get the following error message

sudo: gedit: command not found

Solutions to gedit: command not found

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

In Ubuntu gedit is provided by gedit package.

gedit is:

gedit is a text editor which supports most standard editor features, extending this basic functionality with other features not usually found in simple text editors. gedit is a graphical application which supports editing multiple text files in one window (known sometimes as tabs or MDI).

gedit fully supports international text through its use of the Unicode UTF-8 encoding in edited files. Its core feature set includes syntax highlighting of source code, auto indentation and printing and print preview support.

gedit is also extensible through its plugin system, which currently includes support for spell checking, comparing files, viewing CVS ChangeLogs, and adjusting indentation levels.

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

sudo apt-get -y install gedit

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

You can also use apt command to install gedit.

sudo apt -y install gedit

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

sudo aptitude install gedit

Summary

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