Definition:
- make links between files
- Linking enables a file name in one directory (the link) to point to a file in another directory (the target)
- If you don’t specify the link name, the ln command will create the link in your current working directory (CWD)
- Create hard links by default, symbolic links with
--symbolic
Synopsis:
ln [OPTION]... [-T] TARGET LINK_NAME
- create a link to TARGET with the name LINK_NAME.
ln [OPTION]... TARGET
- create a link to TARGET in the current directory
ln [OPTION]... TARGET... DIRECTORY
- create links to each TARGET in DIRECTORY
ln [OPTION]... -t DIRECTORY TARGET...
- create links to each TARGET in DIRECTORY
List of options:
--back-up[=CONTROL]
-f
- remove existing destination files
i
- prompt whether to remove destinations
- …
-s, --symbolic