Create a symbolic link

#filesystem #io #windows #linux


Linux

ln -s <target> <link-name>

Windows

PowerShell

File symbolic link

New-Item $link -ItemType SymbolicLink -Value $target 

Directory link using mklink which is required for some target object types. This example ensures that the link path and target directory path are quoted.

cmd /c mklink /D "`"$link`"" "`"$target`""
Links to this page