r.in.mat: 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.in.mat - 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.in.mat - from package: grass-core

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