PowerShell: navigate directory
🟢 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. Directories and operations
List Dirs
- PowerShell: navigate directory
- PowerShell: show current dir path
- PowerShell: list directories
- PowerShell: show directory as tree
- PowerShell: list empty dir 📜
- PowerShell: dir size 📜