a1exlism
4/25/2019 - 7:10 AM

shell_ln_symbol_attention

# ln -s Refer
# http://mrhopehub.github.io/2014/04/27/ln.html

# 1. Recommand |  use both ABSOLUTE path when using ln -s command
ln -s /absolute/path/source /absolute/path/output

# 2. Relative directory | source`$1` is relative the output path`$2`
ln -s /relative/to/output(which is `SOURCE`) /absolute/path/output

# NOT Recommand | More specific example: ln /tmp/dir1/source TO /tmp/dir2/output
ln -s ../dir1/source /tmp/dir2/output

# 3. Relative directory $2 | output`$2` is relative CURRENT directory.
# NOT Recommand | Same goal, but pwd='/tmp'
ln -s ../dir1/source dir2/output