declone(1)

declone1

Break hardlinks

Usage

declone file ...

Overview

Breaks a hard link as created by ln(1) or hardlink(1). This program makes a copy of the file's contents, the ownership information and standard permissions. It does not copy ACLs or SELinux contexts.

Examples

$ ln GNUmakefile new1
$ ln GNUmakefile new2
$ ls -li GNUmakefile new1 new2
-rw-r--r--  3 jengelh users 2687 May 27 23:11 GNUmakefile
-rw-r--r--  3 jengelh users 2687 May 27 23:11 new1
-rw-r--r--  3 jengelh users 2687 May 27 23:11 new2
$ declone new2
* new2
$ ls -li GNUmakefile new1 new2
-rw-r--r--  2 jengelh users 2687 May 27 23:11 GNUmakefile
-rw-r--r--  2 jengelh users 2687 May 27 23:11 new1
-rw-r--r--  1 jengelh users 2687 May 28 09:10 new2

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–11
  2. 12–13

From hxtools 20231224-2+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.