GenomeComb

mklink

Format

cg mklink ?options? source ... dest

Summary

Create softlinks (improved)

Description

cg mklink creates softlinks using a syntax similar to "ln -s": dest will be a softlink pointing to src. If dest is a directory, more than one src can be linked/copied.

cg mklink "improves" on using ln -s in following ways:

Even if dest is a directory, cg mklink will try to replace it if it is a link (to a directory) or give an error if it is a real directory: It will not create a file in the dest dir. Only when multiple sources are given, dest must be a directory and links to all sources will be made in the dest directory

Arguments

src
file to be copied
dest
destination

Options

-absolute 0/1 (-a)
softlinks will use absolute paths if 1, relative paths if 0 (default 0)
-matchtime 1/0
0 turns off setting link (dest) to the same time as src (default 1)

Category

Tools