Latest 100 public
snipts » symlink
showing 1-3 of 3 snipts for symlink
-
∞ Replace directory symlink
# Given symlink, target, replace it with a symlink the the directory, source # Tested only with directories, not sure how this would work for files # s - symbolic link # f - if the target exists, unlink it # h - do not follow target symlink, required for replacing a directory symlink ln -sfh source target
-
∞ symlink
#symlink ln -s path.to.dir link.name #(example) #| path that you want to point too| symlink name. Which is the folder or file #name that you're pointing away ln -s /var/www/vhost/domainname domain.com #To remove a symlink you use rm -f symlink.name #or unlink symlink.name
-
∞ Symlink Python package to Python path
#!/bin/bash ln -s `pwd`/$1 `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/$1


