get-location
returns the current location of the current drive. Thus, if the drive is a file system, it returns the current directory. System.Management.Automation.PathInfo
. get-psDrive
, it's possible to show current location of all drives. get-location
are pwd
(which is also a Unix shell command and stands for print working directory ) and gl
pwd
alias with the automatic variable $pwd
.