Átomo
1Pw
Navegação · Windows

Get-Location / pwd

Abrir na tabela

Definição

Mostra o diretório atual. pwd é alias e funciona igual.

Exemplos

1. Caminho atual
Get-Location
pwd
2. Guardar em variável
$here = Get-Location
Write-Host "working in $here"
3. Só o caminho como texto
(Get-Location).Path

No mesmo grupo