ln -s : Symbolic Links

Creating symbolic links in the command line

Syntax

ln -s /path/to/file /path/to/link
ln -s /path/to/file .

Creates a symbolic link in current directory pointing to /path/to/file

Command Options / switches

Option

Effect

-b

Creates backup of link if it exists, appending a ~

-f

Force overwrite if link already exists

-i

Interactively ask if you want to overwrite existing link

Last updated