1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 20:04:54 +02:00
tldr/pages/windows/mklink.md
2020-09-22 18:06:55 +01:00

501 B

mklink

Create symbolic links. More information: https://docs.microsoft.com/windows-server/administration/windows-commands/mklink.

  • Create a symbolic link to a file:

mklink {{path/to/link}} {{path/to/source_file}}

  • Create a symbolic link to a directory:

mklink /d {{path/to/link}} {{path/to/source_directory}}

  • Create a hard link to a file:

mklink /h {{path/to/link}} {{path/to/source_file}}

  • Create a directory junction:

mklink /j {{path/to/link}} {{path/to/source_file}}