PowerShell: Navigate Directory
💡 TIP: Command names and parameter names are case-insensitive.
Change Dir
cd(alias ofSet-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 ofGet-ChildItem)-
List dir content.
Go to Previous Dir
popd(alias ofPop-Location)-
Go to a dir last pushed by
pushd. pushd(alias ofPush-Location)-
Push current dir path to a stack. Can go back to it by
popd.
PowerShell. List Dirs and Files
List Dirs
- PowerShell: Navigate Directory
- PowerShell: Show Current Dir Path
- PowerShell: List Directories
- Show Directory as Tree
- PowerShell: List Empty Dir 📜
- PowerShell: Dir Size 📜
List Files
- PowerShell: List Files
- PowerShell: Show Fullpath, No Truncate Lines
- PowerShell: List Empty Files
- PowerShell: Count Number of Files
- PowerShell: List Files by Wildcard Name Pattern
- PowerShell: Filter File Name by Regular Expression
- PowerShell: List File by Size
- PowerShell: Sort Files by Size 📜
- PowerShell: List Files by Date Time
- PowerShell: Search Text in Files (grep)