r.surf.idw2: 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/r.surf.idw2 - 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/r.surf.idw2 - from package: grass-core

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