Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MacOS Terminal go to a folder with spaces and parenthesis

I'm trying to configure Cyberduck to read the Bookmark files from my Dropbox folder.

This is usually accomplished by this command:

defaults write ch.sudo.cyberduck application.support.path ~/Dropbox/Cyberduck

Super easy!!

But... Dropbox has since changed and if you have a Pro Account the Dropbox folder is renamed "Dropbox (Personal)".

I've tried to do this:

defaults write ch.sudo.cyberduck application.support.path ~/Dropbox\ \(Personal\)/

And I get this error:

not parse: [...]/Dropbox (Personal)/Apps/Cyberduck/.  Try single-quoting it.

I tried single quoting like this but same error:

defaults write ch.sudo.cyberduck application.support.path '~/Dropbox\ \(Personal\)/'

How can I solve this?

like image 631
Mr.Web Avatar asked Jan 06 '23 23:01

Mr.Web


1 Answers

You can single quote escape your parentheses by wrapping them in a double quote:

Instead of: ln -s '/Users/username/Dropbox (Company Name)/' DropboxCompanyName

Do: ln -s "'/Users/username/Dropbox (Company Name)/'" DropboxCompanyName

Notice the double quotes added to /Users/username/Dropbox (Company Name)/

like image 172
cody.codes Avatar answered Jan 09 '23 20:01

cody.codes