HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

link — Create a hard link to an existing file. For more options, see the `ln` command. More information: <h

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandlinkhardclifileexisting

Problem

How to use the link command: Create a hard link to an existing file. For more options, see the ln command. More information: <https://www.gnu.org/software/coreutils/manual/html_node/link-invocation.html>.

Solution

link — Create a hard link to an existing file. For more options, see the ln command. More information: <https://www.gnu.org/software/coreutils/manual/html_node/link-invocation.html>.

Create a hard link from a new file to an existing file:
link {{path/to/existing_file}} {{path/to/new_file}}

Code Snippets

Create a hard link from a new file to an existing file

link {{path/to/existing_file}} {{path/to/new_file}}

Context

tldr-pages: common/link

Revisions (0)

No revisions yet.