Skip to content

Instantly share code, notes, and snippets.

@geedew
Last active November 21, 2022 10:00
Show Gist options
  • Save geedew/4ea58b7711256b417c2d62a7f325bf20 to your computer and use it in GitHub Desktop.
Save geedew/4ea58b7711256b417c2d62a7f325bf20 to your computer and use it in GitHub Desktop.
A cross platform symlink method in Bash
@melMass
Copy link

melMass commented Apr 26, 2022

I'm confused (just started using windows after 15years without it), does mklink works in reverse?

For ln it's $1 = source, $2 = target

EDIT: It is... how confusing ahaha, so I personally will reverse them as I'm more used to ln's way
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment