xmag: 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/bin/xmag - from package: xorg-x11-apps

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/xmag - from package: x11-apps

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