medit: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/medit - from package: medit

You may install the required package with command apt-get install {package}
Error in other languages:
medit: bevel nie gevind nie
medit: comandă negăsită
medit: comando não encontrado
medit: commande introuvable
medit: command not found
medit: käsku ei ole
medit: không tìm thấy lệnh
medit: komanda nerasta
medit: Kommando nicht gefunden.
medit: kommandot finns inte
medit: komut yok
medit: nie znaleziono polecenia
medit: níor aimsíodh an t-ordú
medit: no se encontró la orden
medit: no s'ha trobat l'ordre
medit: opdracht niet gevonden
medit: parancs nem található
medit: perintah tidak ditemukan
medit: príkaz nenájdený
medit: příkaz nenalezen
medit: команда не найдена
medit: командата не е открита
medit: 命令找不到
medit: コマンドが見つかりません