mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 16:42:03 +00:00
26 lines
608 B
Plaintext
26 lines
608 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mklink
|
|
|
|
> Create symbolic links.
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/mklink>.
|
|
|
|
- Create a symbolic link to a file:
|
|
|
|
`mklink {{path o\link_file}} {{path o\source_file}}`
|
|
|
|
- Create a symbolic link to a directory:
|
|
|
|
`mklink /d {{path o\link_file}} {{path o\source_directory}}`
|
|
|
|
- Create a hard link to a file:
|
|
|
|
`mklink /h {{path o\link_file}} {{path o\source_file}}`
|
|
|
|
- Create a directory junction:
|
|
|
|
`mklink /j {{path o\link_file}} {{path o\source_file}}`
|