Sign up to create your own snipts, or login.

Public snipts » symlink The latest public symlink snipts.

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
    

    copy | embed

    0 comments - tagged in  posted by jmakeig on Jan 06, 2010 at 6:46 p.m. EST
  • 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
    

    copy | embed

    0 comments - tagged in  posted by AvidDeville on Aug 25, 2009 at 9:15 a.m. EDT
  • 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
    

    copy | embed

    0 comments - tagged in  posted by kogakure on Dec 19, 2008 at 3:25 a.m. EST
Sign up to create your own snipts, or login.