g.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/g.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/g.ask - from package: grass-core

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