Skip to content

Instantly share code, notes, and snippets.

@codfish
Last active December 28, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codfish/7539565 to your computer and use it in GitHub Desktop.
Save codfish/7539565 to your computer and use it in GitHub Desktop.
Symlink every file in one directory into another directory
# for instance, if you want to link all of your nginx config files
# from sites-available/ to sites-enabled/ in one fell swoop
# the trick here is to go into the target directory before issuing the ln command
cd /etc/nginx/sites-enabled
sudo ln -sfnv /etc/nginx/sites-available/* .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment