linux挂载windows共享目录时密码特殊字符处理


用linux挂载windows共享目录是由于密码含有特殊字符就会提示bash !@# not found,这时候我们就要处理一下:

mount -t cifs -o username=test,[email protected]# //192.168.200.1/ftp /temp

-bash: [email protected]#: event not found

由于密码含有[email protected]#linux系统不认那么我们只需要在密码前后加上单引号就好了:

mount -t cifs -o username=test,password='[email protected]#' //192.168.200.4/ftp /temp

QQ截图20140109154941

 


Whatever is worth doing is worth doing well.