tldr/pages/windows/mklink.md

21 lines
522 B
Markdown
Raw Normal View History

2018-10-01 17:48:36 +01:00
# mklink
> Create symbolic links.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/mklink>.
2018-10-01 17:48:36 +01:00
- Create a symbolic link to a file:
`mklink {{path\to\link_file}} {{path\to\source_file}}`
2018-10-01 17:48:36 +01:00
- Create a symbolic link to a directory:
`mklink /d {{path\to\link_file}} {{path\to\source_directory}}`
2018-10-01 17:48:36 +01:00
- Create a hard link to a file:
`mklink /h {{path\to\link_file}} {{path\to\source_file}}`
2018-10-01 17:48:36 +01:00
- Create a directory junction:
`mklink /j {{path\to\link_file}} {{path\to\source_file}}`