December 12, 2024

For finding/printing the current working directory in Linux, we have pwd command to use.

Ever wondered what is the equivalent for Windows command prompt?

1. Open Windows command prompt and type the following :

echo %cd%

This will print out the current working directory in Windows command prompt. This is by the way more useful when logged in remotely and wanting to check the current directory as compared to logging in locally as path is already included in the command prompt for that :).

Cheers.

 

By admin

Related Post