Get-Location
noun
say it: “GET loh-KAY-shun” /ɡɛt loʊˈkeɪʃən/
The PowerShell command that prints the path of the folder you're working in right now, its current folder.
What does Get-Location do?
Get-Location tells you which folder PowerShell is in: its current folder, as a full path. Its short name is pwd.
Get-Location
# Path
# ----
# C:\Users\Sam\terminal-practice\trip
In a sentence
- “The help-desk tech asked me to run Get-Location and read the path back to her.”
- “Before deleting anything, Priya ran Get-Location to be sure she was in the practice folder and not in Documents.”
Level: Novice · More PowerShell terms at this level
Updated