ln -s -i -v target linkname
where
- -s means that I want to create a symbolic link
- -i means that I will be prompted if the symlink already exists
- -v means that I'll see a message confirming that the symlink was created
- target is the path to the file or folder that I want to point to
- linkname is the path and name of the symlink file that I want to create
ln -s -i -v /Users/username/Documents ~/doc
I found the above in following post:
Bob's blog
Thanks to Bob for this post.