Admin password reset not working from Linux Terminal
Cause: If the new admin password contains any special characters, the Linux terminal interprets it as a command.
Resolution or Workaround: Avoid this issue by using single quotes instead of double quotes. Or use the escape character.
eg:
php resetadminpw.php -p 'he!@#%$%^)*el$AAo'
OR
php resetadminpw.php -p he\!@#%$%^)*el\$AAo