PowerShell: Navigate Directory

By Xah Lee. Date: . Last updated: .

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.
ii (Invoke-Item)
open item with default app. For example, ii . open the current dir in desktop.

PowerShell

How-to

Advanced

Script Examples