Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a Linux machine at work, and started using at home in a VM for some home development.

I have a vimrc and a bashrc with some configuration, that are useful for both machines.

What is the best way to sync them? Create a symlink for each file in my home folder pointing out to a the respectives files in my Dropbox sync folder? Is this possible (delete .bashrc and create a symlink instead)?

share|improve this question
up vote 5 down vote accepted

Yes, Dropbox does support symlinks and you can use these to sync files which are outside of the "My Dropbox" folder. The Dropbox folder on my Ubuntu box is all symlinks.


share|improve this answer
That's fine, but I can't work out how to then sync the same directory structure on another computer... – Greg Apr 29 '14 at 12:35

What you suggest should be fine, just store the .bashrc and other configuration files in your drop box then symlink ~/.bashrc to your one in your drop box.

share|improve this answer

Dropbox is a great way to store your vimrc and bashrc. Its a great place to store all of your important dotfiles, actually.

I use another approach than the suggestions above. I have moved many of my dot files to a git repo on my dropbox account. The repo also contains a little script which, when run, will move or delete actual dot files in a home directory, and replace them with symlinks to my dot files in the git repo.

Because I'm using revision control, I can incrementally experiment or tweak my dot files over time. I can also revert any changes I make if I screw something up. I can also create branches - Sometimes I like to experiment with and tweak a vimrc or muttrc downloaded from the net, etc.

share|improve this answer
Wait, you have a git respitory in you Dropbox folder, and you commit to it? – Somebody still uses you MS-DOS Jun 2 '10 at 16:30

Dropbox is great for that, and yes it support symlinks. this new beta, might be a big help, with selective sync, to keep some files on only one computer.

share|improve this answer

Your Answer


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.