File Linking

Create a symbolic link

Price range: €16.62 through €20.06

Command:

bash
ln -s /path/to/source /path/to/destination

Explanation:

  • ln: The command used to create links between files or directories.
  • -s: This option creates a symbolic (or soft) link. A symbolic link points to the original file or directory and can span across filesystems.
  • /path/to/source: The source file or directory you want to link to. Replace this with the full path of the file or directory you want to create a symbolic link for.
  • /path/to/destination: The location where you want the symbolic link to be created. This can be a file or directory where you want to access the source via the symbolic link.

Result:

This command creates a symbolic link at the destination path that points to the source file or directory. The symbolic link behaves like a shortcut, allowing you to reference the source file or directory using the destination path.


Example:

To create a symbolic link named config_link that points to /etc/config/config_file in the current directory, you would use:

bash
ln -s /etc/config/config_file config_link
Select options This product has multiple variants. The options may be chosen on the product page