Search notes:

PowerShell cmdLet get-location

get-location returns the current location of the current drive. Thus, if the drive is a file system, it returns the current directory.
The type of the returned object is a System.Management.Automation.PathInfo.
With get-psDrive, it's possible to show current location of all drives.

Aliases

Aliases for get-location are pwd (which is also a Unix shell command and stands for print working directory ) and gl
Compare the pwd alias with the automatic variable $pwd.

See also

Powershell command noun: location

Index