-s, --symbolic
Make symbolic links instead of hard links.
An option of lnx.
Usage
lnx -s TARGET... [LINK_NAME|DIRECTORY]
lnx --symbolic TARGET... [LINK_NAME|DIRECTORY]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-s | --symbolic | none | make symbolic links instead of hard links |
Examples
Create a symbolic link
lnx -s /opt/app/releases/v2 currentRepoint an existing symlink to a directory, in one atomic step
lnx -sfn releases/v3 currentLink several files into a directory with relative symlinks
lnx -sr -t ~/bin tools/build tools/deployCreate a link with the same name in the current directory
lnx -s ../shared/config.ymlLink several targets into an existing directory
lnx -sv ../dotfiles/.vimrc ../dotfiles/.gitconfig home/Ask before replacing an existing link
lnx -si settings.prod.json settings.jsonReplace an existing file with a link
lnx -sf app-v2.conf app.confTreat the link name as a plain file, never as a directory to link into
lnx -sT releases/v3 current-releaseReport whether linking succeeded
lnx -s target.txt link.txt && echox linked || echox "link exists already"Create a release directory and point current at it with the gnux shell
gnux shell -c 'mkdirx -p releases/v4 && lnx -sfnv releases/v4 current'Repoint a symbolic link, keeping the old one as current~ in case you need to roll back
lnx -sbv releases/v5 currentHelp in the terminal
gnux help lnx --symbolic