Search code examples
linuxftpcurlftpfs

linux curlftpfs, password with symbols


I want to mount an FTP drive, but my FTP password contains "?!".

I enter the command:

curlftpfs myaccount:[email protected] 

but it gives me "bash: [email protected]: event not found"

How do I escape those characters?


Solution

  • Enclose it in single quotes:

    curlftpfs 'myaccount:[email protected]'
    

    As you've discovered, the exclamation mark has a special meaning in bash: [email protected] stands for the most recent command that started with @thefptserver.com.