For Windows, cd
by itself will show you the current working directory.
For UNIX and workalike systems, pwd
will perform the same task. You can also use the $PWD
shell variable under some shells. I am not sure if Windows supports getting the current working directory via a shell variable or not.