On Fri, 2019-05-24 at 11:05 +0000, Mostafa Faridi wrote:
and hit enter, I see this error
bash: !@ : event not found
Yes. "!" is a special character in bash.
In this case you have to put the password inside single quotes.
sudo .... wifi-sec.psk 'xxxx!@xxxxx'