1

Current pwd:

C:

I created a sample symlink say:

mklink /j C:\a C:\b\c

Thereafter after i navigate using the symlink:

cd a

If I execute the 'pwd' command, I see the path as C:\a Is there a way so that I can see the actual path C:\b\c?

Alternatively please point me to the thread if this question has been already answered. I could not locate any relevant answers. Thanks.

Coder
  • 476
  • 1
  • 4
  • 12

1 Answers1

1

You aren't going to get the behavior you want from that command because it isn't actually making a symlink. The command mklink /j creates what Windows calls Junctions. They are, for all intents and purposes, an analog to directory hard-links in NTFS. They also behave differently depending on how you navigate through them (explorer.exe vs. cmd.exe / powershell.exe).

Try using mklink /d as this will create a directory symbolic link and may actually provide the functionality you desire.