fmt: 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/fmt - from package: coreutils

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

On Debian possible default full paths are:

/usr/bin/fmt - from package: coreutils
/usr/lib/plan9/bin/fmt - from package: 9base

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