12
votes

I am getting 'pwd' is not recognized as an internal or external command operable program or batch file when I am trying to check my present working directory from cmd.

I have already set the environment variable path. Still I am getting the issue. ping, cmd is working fine.

Please help. thanks in advance

2
System.getProperty("user.dir")Elliott Frisch
Or else java has nothing to do with your question.user207421

2 Answers

16
votes

pwd is a linux command, won't work in windows.

In windows just run cd without passing any arguments

0
votes

If you are using JupyterLab, !pwd is unacceptable as it is for the the linux, for window use pwd ,instead.