HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Get-Location — Print name of current/working directory. This command can only be run through PowerShell. More infor

Submitted by: @import:tldr-pages··
0
Viewed 0 times
currentdirectorycommandget-locationnamecliprintworking
windows

Problem

How to use the Get-Location command: Print name of current/working directory. This command can only be run through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-location>.

Solution

Get-Location — Print name of current/working directory. This command can only be run through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-location>.

Print the current directory:
Get-Location

Code Snippets

Print the current directory

Get-Location

Context

tldr-pages: windows/Get-Location

Revisions (0)

No revisions yet.