redsocks: 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/sbin/redsocks - from package: redsocks

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