magic: 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 Debian possible default full paths are:

/usr/bin/magic - from package: magic

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