Sign up to create your own snipts, or login.

Public snipts » jmakeig's snipts » Replace directory symlink

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

Sign up, or login to leave a comment.