set-location
Display the current working directory or move to a different directory. tldr-pages
On Windows
Windows
Display the current working directory or move to a different directory. Note: This command can only be used through PowerShell.
Go to the specified directory
Set-Location path\to\directoryIdentifyGo to a specific directory in a different drive
Set-Location C:path\to\directoryIdentifyGo and display the location of specified directory
Set-Location path\to\directory -PassThruIdentifyGo up to the parent of the current directory
Set-Location ..IdentifyGo to the home directory of the current user
Set-Location ~IdentifyGo back/forward to the previously chosen directory
Set-Location -IdentifyGo to root of current drive
Set-Location \Identify