⌘K
Options (2)
-s, --symbolicbooleanCreate a symbolic link to a file or directory
Example:
ln {{[-s|--symbolic]}} /{{path/to/file_or_directory}} {{path/to/symlink}}booleanOverwrite an existing symbolic link to point to a different file
Example:
ln {{[-sf|--symbolic --force]}} /{{path/to/new_file}} {{path/to/symlink}}Examples (4)
Create a symbolic link to a file or directory
ln [-s|--symbolic] /path/to/file_or_directory path/to/symlinkCreate a symbolic link relative to where the link is located
ln [-s|--symbolic] path/to/file_or_directory path/to/symlinkOverwrite an existing symbolic link to point to a different file
ln [-sf|--symbolic --force] /path/to/new_file path/to/symlinkCreate a hard link to a file
ln /path/to/file path/to/hardlinkmade by @shridhargupta | data from tldr-pages