How to follow a shortcut in powershell

Viewed 1723

In powershell, you use cd dir to go into the directory dir.

But if dir is a shortcut to a directory, cd dir and cd dir.lnk both give an error, saying that the directory doesn't exist.

So how do I follow that shortcut?

(In Linux cd dir just works. In Windows, I've got no idea)

2 Answers

In Windows 10 cd directory_name or cd dir* if you only want part of the name assuming no other directories start with the same dir*.

enter image description here

Related