lsattr: 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/lsattr - from package: e2fsprogs

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

On Debian possible default full paths are:

/usr/bin/lsattr - from package: e2fsprogs

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