How to create a symlink in Windows

In Unix-like operating os like Linux-based distros (ie: ubuntu) or macOS have ln command to create a symlink. But, windows can’t use the same command to create a hard link. But, Windows has a way to create a symlink or hard link for a file or directory.

To create a hard link or symlink you will open the Windows Powershell as Administrator privilege. Then you need to run the following command:

New-Item -ItemType SymbolicLink -Path C:\Users\AminulBD\LinkPath -Target C:\Users\AminulBD\TargetPath

I hope this will save your time and improve your workflow. You can let me your opinion in the comments.