ftpdir: 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/ftpdir - from package: qftp

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