maskFastaFromBed: 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/maskFastaFromBed - from package: BEDTools

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

On Debian possible default full paths are:

/usr/bin/maskFastaFromBed - from package: BEDTools

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