Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ln

v(uutils coreutils) 0.1.0

Options

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

--force, -f

ln-help-force

--interactive, -i

ln-help-interactive

--no-dereference, -n

ln-help-no-dereference

--logical, -L

ln-help-logical

--physical, -P

ln-help-physical

--symbolic, -s

ln-help-symbolic

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--target-directory=<DIRECTORY>, -t <DIRECTORY>

ln-help-target-directory

--no-target-directory, -T

ln-help-no-target-directory

--relative, -r

ln-help-relative

--verbose, -v

ln-help-verbose

Examples

Create a symbolic link to a file or directory:

ln {{[-s|--symbolic]}} {{/path/to/file_or_directory}} {{path/to/symlink}}

Overwrite an existing symbolic link to point to a different file:

ln {{[-sf|--symbolic --force]}} {{/path/to/new_file}} {{path/to/symlink}}

Create a hard link to a file:

ln {{/path/to/file}} {{path/to/hardlink}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.