d.rast.num: 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.rast.num - 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.rast.num - from package: grass-core

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