ln (target)

Create links to (aliases for) files (POSIX, toybox)

Syntax:

ln [-fnPsv] [-t dir] [from...] to

Runs on:

QNX OS

Options

-f
Force the creation of the link, even if to already exists.
-n
Treat a symbolic link at to as a file.
-P
Create a link in the process manager prefix tree.
-r
Create a relative symbolic link between from and to.
-s
Create a symbolic link.
-T
Always treat to as a file, with a maximum of two arguments.
-t dir
Create links in dir.
-v
Be verbose.
from
The pathname of a file that links are created from.
to
The pathname of a file that links are created to.

Description:

The ln utility creates a link between the from and to files. If ln has one too many arguments it works like the mv or cp utilities.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: