'pwd' is not recognized as an internal or external command [Fixed]
In this tutorial, we are going to learn about how to fix the ‘pwd’ is not recognized as an internal or external command error.
When we use a pwd
command in windows os to display the current directory, we will see the following error in our command line or cmd.
Example:
pwd
Output:
'pwd' is not recognized as an internal or external command,
operable program or batch file.
This error is occurred due to the pwd
command is not available in windows os. It is only available in Linux based operating systems.
To fix this error, use the cd
command to get the current working directory in Windows os.
Here is an example:
cd
If you still want to use the pwd
command in windows os, open the windows powershell and type the pwd
-> hit enter.