Forrest logo
back to the link tool

link:tldr:518fb

link: Create a hard link from a new file to an existing file.
$ link ${path-to-existing_file} ${path-to-new_file}
try on your machine

The command "link" is used to create a hard link between two files in a Unix-like operating system. Here's an explanation of each part of the command:

  • "link": This is the actual command you are executing.

  • "${path-to-existing_file}": This is a placeholder indicating the path to an existing file. You need to replace "${path-to-existing_file}" with the actual path to the file you want to create a link from.

  • "${path-to-new_file}": This is a placeholder indicating the path to a new file. You need to replace "${path-to-new_file}" with the actual path where you want to create the new link.

By executing this command, you are essentially creating a new file with a link to an existing file. Both the original file and the new link will point to the same location on disk. Any changes made to one file will be reflected in the other file as well, since they are linked.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the link tool