PowerShell: Navigate Directory

By Xah Lee. Date: .

Here's commands to navigate directory.

cd
(Set-Location) Change dir.
pwd
(Get-Location) Show current dir path.
dir
(Get-ChildItem) List dir content.
pushd
(Push-Location) Push current dir path to a stack. Can go back to it by popd.
popd
(Pop-Location) Go to a dir last pushed by pushd.

PowerShell

How-to

Advanced

Script Examples