LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

link

creates a hard link between files

TLDR

Create hard link
$ link [target] [linkname]
copy
Link file to directory
$ link [file.txt] [dir/file.txt]
copy

SYNOPSIS

link file1 file2

DESCRIPTION

link creates a hard link between files. Unlike ln, it only creates hard links and takes exactly two arguments.The tool creates an additional directory entry pointing to the same inode. Both names reference the same file data.

PARAMETERS

FILE1

Target file (source).
FILE2
Link name (destination).

INSTALL

sudo apt install coreutils
copy
sudo dnf install coreutils
copy
sudo pacman -S coreutils
copy
sudo apk add coreutils
copy
sudo zypper install coreutils
copy
brew install coreutils
copy
nix profile install nixpkgs#coreutils
copy

CAVEATS

Cannot create symbolic links. Cannot link directories. Target must exist. Same filesystem only.

HISTORY

link is a POSIX utility providing a simple interface to the link() system call for creating hard links.

SEE ALSO

ln(1), unlink(1), readlink(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid