kwrite: 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 CentOS possible default full paths are:

/usr/bin/kwrite - from package: kdebase

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/kwrite - from package: kwrite

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