修改密码报-bash: !@#***": event not found

使用echo修改系统root密码时报:-bash: !@#****": event not found

截图如下:

 解决办法:

1.将双引号改为单引号就好了。

 2.关闭histexpand。

这时候我们在改下密码就没问题了。

原文地址:https://www.cnblogs.com/flower-0626/p/14371203.html