Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, what is the difference between the following two commands:

sudo ln -s "/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3" /usr/local/bin/python3

sudo ln -s /Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 /usr/local/bin/python3
share|improve this question

2 Answers 2

up vote 2 down vote accepted

In your case, there is no difference. Use quotes around a path when it contains spaces:

cd "/Applications/My Awesome Program.app/Contents/Resources"

Alternatively, you can escape those spaces with a \ like so:

cd /Applications/My\ Awesome\ Program.app/Contents/Resources

But whatever you do, don't combine escaping with quotes.

share|improve this answer

The quotes just signify that that's the path. If there are spaces in the path, the quotes make it treat it as one string. If there aren't special characters in the path it doesn't make a difference.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.