shtool-mkln(1)

shtool-mkln1

Gnu shtool enhanced ln(1) replacement

Usage

shtool mkln [{-t | --trace}] [{-f | --force}] [{-s | --symbolic}] src-path [src-path ...] dst-path

Overview

This is a ln(1) style command. It is enhanced to provide automatic calculation and usage of relative links with the shortest possible path, if possible. Usually if src-path and dst-path are not absolute paths or at least they share a common prefix except the root directory (``"/"''). When more than one src-path is specified, all of them are linked into dst-path.

Options

The following command line options are available.

-t, --trace

Enable the output of the essential shell commands which are executed.

-f, --force

Force the creation of the link even if it exists. Default is to fail with error.

-s, --symbolic

Create a symbolic link instead of a hard-link.

Examples

 #   shell script
 shtool mkln -s foo/bar baz/quux

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0–8
  5. 9–10
  6. 11–13

History

The GNU shtool fixperm command was originally written by Ralf S. Engelschall <[email protected]> in 1998 for ePerl.

From shtool 2.0.8-10 in Debian 13 (Trixie). Parsed by carta from the page's man source.