Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

All my docs are in:

/Users/Joe/Documents/Mydocs

I want to put them on dropbox through symbolic link so I created this empty folder:

/Users/Joe/Dropbox/Mydocs

Then used this command to create a symbolic link:

ls -s /Users/Joe/Documents/Mydocs /Users/Joe/Dropbox/Mydocs

The destination folder is still empty, what can I do to properly make the link?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Your command is wrong.

It is not ls -s, but ln -s

share|improve this answer
add comment

As Vincent points out, the proper command is ln -s, not ls -s. In addition to that, ln will throw an error if the target of the link (in this case, the Mydocs folder in Dropbox) already exists.

The proper way to do this is to delete /Users/Joe/Dropbox/Mydocs, then run ln -s /Users/Joe/Documents/Mydocs /Users/Joe/Dropbox/Mydocs.

share|improve this answer
add comment

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.