shell中屏蔽感叹号的作用的新启发

时间:2014-11-11 10:51:46   收藏:0   阅读:205

以前我只知道在shell脚本中屏蔽!功能有三个方法,单引号、双引号、转义字符

最近在,调试mongodb时,有个账号的密码已!开头,怎么调试都auth认证无法通过

mongo也有自己的shell,综合起来语法应该是这样的:


mongo --username root --password ‘!passwd‘ 110.20.2.110/admin

其中,usernmae,password不能使用简写,shell不认识bubuko.com,布布扣

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!