Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analog of $PWD in Windows

I run windows command in particular directory and I need to pass files and subdirectories in this directory with full path. How to retrieve full path of current directory? What is analog of bash $PWD?

like image 514
vico Avatar asked Jan 27 '26 07:01

vico


1 Answers

$pwd is indeed a valid command in PowerShell as well (if you're using PowerShell). $pwd in PowerShell is basically an alias for Get-Location - both of them will give you the full path of current directory.

In case you are using cmd, use cd (just cd without any parameters)

like image 68
Yash Gupta Avatar answered Jan 30 '26 18:01

Yash Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!