Skip to content

Instantly share code, notes, and snippets.

@codfish
Last active December 28, 2015 17:59
Embed
What would you like to do?
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