TextEdit: 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/TextEdit - from package: textedit.app
/usr/bin/TextEdit - from package: xview-clients

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