gedite linux code example
Example: bash: gedit: command not found
First, try this:
sudo apt-get install gedit
or You can try this
sudo apt-get purge gedit gedit-common
sudo apt-get clean
After this try reinstalling with
sudo apt-get install gedit