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

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