Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-s--symbolicnonemake symbolic links instead of hard links

Examples

lnx -s /opt/app/releases/v2 current
lnx -sfn releases/v3 current
lnx -sr -t ~/bin tools/build tools/deploy
lnx -s ../shared/config.yml
lnx -sv ../dotfiles/.vimrc ../dotfiles/.gitconfig home/
lnx -si settings.prod.json settings.json
lnx -sf app-v2.conf app.conf
lnx -sT releases/v3 current-release

Report 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'
lnx -sbv releases/v5 current

Help in the terminal

gnux help lnx --symbolic

On this page