PowerShell: Navigate Directory

By Xah Lee. Date: . Last updated: .

💡 TIP: Command names and parameter names are case-insensitive.

Change Dir

cd (alias of Set-Location)

Change dir.

# go up one dir
cd ..

# go to home dir
cd

for dir name abbreviations, see PowerShell: Path Expansion

List Dir Content

dir (alias of Get-ChildItem)

List dir content.

Go to Previous Dir

popd (alias of Pop-Location)

Go to a dir last pushed by pushd.

pushd (alias of Push-Location)

Push current dir path to a stack. Can go back to it by popd.

PowerShell. List Dirs and Files

List Dirs

List Files

Create, Copy, Delete, Dir

Path Tutorial