On Windows 10, the Windows Terminal app is the new modern command-line experience to run Command Prompt, PowerShell, and Linux commands. By default, you will always start in your profile location (%USERPROFILE%) when using the app. However, if you always change the directory to start running commands, Windows Terminal allows you to set a different working directory using the Settings UI or settings.json file. In this guide, you will learn the steps to change the starting directory for any command-line tool available in the Windows 10 terminal experience.

Change starting directory using Windows Terminal settings UI Change starting directory using Windows Terminal settings.json

Change starting directory using Windows Terminal settings UI

To change the starting directory for Command Prompt, PowerShell, or WSL2 distros, use these steps: Once you complete the steps, the next time you open the command-line tool, it will open in the specified directory. Change starting directory option

Change starting directory using Windows Terminal settings.json

To change the starting directory using the settings.json file, use these steps: After you complete the steps, the settings will save, and the next time, the command-line tool will launch in the new path. In the command, make sure to change the “C:\” for the path you want to start the command-line tool. Also, notice the extra “\” that is required to specify the setting. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.