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

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

截图如下:

 

 解决办法:

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

 

 2.关闭histexpand。

 

 

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

 

posted @ 2021-02-04 10:31  真善美_flower  阅读(1810)  评论(0)    收藏  举报