d.ask: 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/lib64/grass-6.4.4/bin/d.ask - from package: grass

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

On Debian possible default full paths are:

/usr/lib/grass64/bin/d.ask - from package: grass-core

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