Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
3 years, 8 months ago
As most of you know, it is possible to open a new Command Line in the current folder from the file explorer. For this you have to write 'cmd' in the folder path.
Is there a way to do this with the new Windows Terminal (Preview) yet? As this is currently my preferred shell.
Sep 10, 2019 at 21:36
411 1 1 gold badge 4 4 silver badges 5 5 bronze badges
Simply type in
wt in the address bar and it will open the command prompt with the path to your current folder already set.
Make sure that your settings do not overwrite
41.3k 34 34 gold badges 102 102 silver badges 130 130 bronze badges
Sep 22, 2019 at 8:37
Marek Ozana Marek Ozana
362 2 2 silver badges 2 2 bronze badges
You can try this command in the folder path:
wt -d .
EDIT: Microsoft mentions the previous command in one of their videos alongside with many interesting features of
Windows Terminal 1.0
Apr 6, 2020 at 21:13
Alex R. Alex R.
620 1 1 gold badge 5 5 silver badges 5 5 bronze badges
To fix this:
Open Windows Terminal
Click the down arrow in the toolbar to get the menu and select "Settings"
Update your profiles.json defaults so that all shells starting directory is the current directory
// Put settings here that you want to apply to all profiles
From at least v0.9.433.0 on Windows 10 onwards the default value for "startingDirectory" in defaults.json on my machine is "%USERPROFILE%", which means typing "wt" in an explorer window opens in your home directory, not the current folder.
Feb 27, 2020 at 2:49
489 1 1 gold badge 4 4 silver badges 2 2 bronze badges
For quite some time, there is a PowerShell module called
OpenHere that gives you granular options to control this functionality.
All you need is to copy paste this into PowerShell with elevated rights:
Install-Module -Name OpenHere; Import-Module -Name OpenHere
and start to explore the
I'm a developer of this module.
Aug 25, 2020 at 9:01
What worked for me on Windows 11 is checking "Use parent process directory" under "Starting directory" in terminal profile settings.
Dec 15, 2022 at 12:05
this link. It's an awesome article to open the terminal in the exact folder like Linux. (Thank you @DarkDiamond)
Here is the process:
To add the Open command window here option to the context menu that displays when you right-click on a folder, press the Windows
key + R to open the Run dialog box.
regedit into the Open box and click OK.
Navigate to this path:
Take ownership of the
cmd key and give yourself full control permission.
Make sure the
cmd key is selected. Then, right-click on the
HideBasedOnVelocityId value on the right and select
Change the name of the
HideBasedOnVelocityId value to
ShowBasedOnVelocityId and press
Close the Registry Editor and restart the
Windows Explorer process.
Now you can
Shift + right-click on a
folder, not in it, and select
Open command window here.
Aug 8, 2022 at 6:20
I just did this:
Open windows terminal
Click (+) and select configuration
Go to Default Values in the side navigation bar
Click on starting directory
Set value to .
Try to open from folder typing wt in navigation bar
16.7k 50 50 gold badges 29 29 silver badges 41 41 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only