linux curlftpfs,带符号的密码

use*_*159 10 linux ftp curlftpfs

我想挂载一个FTP驱动器,但我的FTP密码包含"?!".

我输入命令:

curlftpfs myaccount:mypassword?!@thefptserver.com 
Run Code Online (Sandbox Code Playgroud)

但它给了我"bash:!@ theftpsever.com:找不到事件"

我如何逃避这些角色?

NPE*_*NPE 7

用单引号括起来:

curlftpfs 'myaccount:mypassword?!@thefptserver.com'
Run Code Online (Sandbox Code Playgroud)

正如您所发现的,感叹号具有特殊含义bash:!@thefptserver.com代表最新的命令@thefptserver.com.


Fel*_*cio 5

您可以使用下面的用户选项将用户和密码与 FTP URL/IP 分开:

curlftpfs -o user='myaccount:mypassword?!' thefptserver.com
Run Code Online (Sandbox Code Playgroud)

我在curftpfs手册中找到了这个选项,希望它有帮助!

在此链接中也找到了相同的答案https://superuser.com/questions/269006/curlftpfs-doesnt-work-for-a-username-with-a