使用echo修改系统root密码时报:-bash: !@#****": event not found
截图如下:
解决办法:
1.将双引号改为单引号就好了。
2.关闭histexpand。
这时候我们在改下密码就没问题了。