Every time I want to create a symlink on the command line it seems to take me half an hour. I never get the syntax right as many times as I read the documentation, so I’m posting here with what makes sense to me and my use of Dropbox.
Usually I want to relocate a local folder to Dropbox so that it’s backed up. As an example, I might have a mystuff folder in my user’s home directory.
- Move the current
mystufffolder to Dropbox. - Run this from the command line.
ln -s ~/Dropbox/mystuff ~/mystuff
- Enjoy the piece of mind that data is automatically backed up.
1-3 can be replaced by move mystuff to Dropbox
4. Create symbolic link remembering that 1st argument is source, and 2nd is the resulting link.
LikeLike
You’re right, that’s a lot simpler for steps 1-3. Modified the post.
LikeLike