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

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