PowerShell: Navigate Directory
Here's commands to navigate directory.
cd
(alias ofSet-Location
)-
Change dir.
# go up one dir cd .. # go to home dir cd
pwd
(alias ofGet-Location
)- Show current dir path.
dir
(alias ofGet-ChildItem
)- List dir content.
pushd
(alias ofPush-Location
)-
Push current dir path to a stack. Can go back to it by
popd
. popd
(alias ofPop-Location
)-
Go to a dir last pushed by
pushd
.
ii
(alias ofInvoke-Item
)-
open item with default app.
# open the current dir in file explorer ii .