snippetbashTip
link — Create a hard link to an existing file. For more options, see the `ln` command. More information: <h
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.