Windows Terminal là ứng dụng dòng lệnh mạnh mẽ, nhanh, hỗ trợ multi-tab, có trên Windows 11 và Windows 10. Cho phép truy cập Command Prompt, PowerShell, và Windows Subsystem for Linux. Mặc định khi mở Windows Terminal, thấy thư mục khởi đầu mặc định. Hướng dẫn thay đổi Starting Directory trong Windows Terminal.

Mặc định Windows Terminal mở ở C:%USERPROFILE%. Bạn có thể đổi thư mục khởi đầu mặc định thành đường dẫn tùy chỉnh trong vài bước. Xem cách thay đổi.
Cách thay đổi Starting Directory trong Windows Terminal
Để thay đổi Starting Directory:
- Mở Windows Terminal as Administrator
- Click nút thả xuống bên cạnh tab
- Chọn Settings
- Click Defaults dưới Profiles
- Bỏ tích ô "Use parent process directory"
- Duyệt thư mục mới
- Click Save
Chi tiết quy trình:
Mở Windows Terminal as Administrator bằng phím tắt Win+X. Click mũi tên thả xuống bên cạnh tab → chọn Settings.

Trang Settings, click Defaults dưới phần Profiles. Bỏ tích nút bên cạnh Use parent process directory. Nút Browse sẽ bật để chọn thư mục mới.

Như đã nói %USERPROFILE% là starting directory mặc định. Để đổi, click nút Browse. Chọn folder/thư mục mong muốn → click OK trên cửa sổ explorer.
Đường dẫn thư mục khởi đầu mới sẽ hiển thị trong ô Starting directory. Click nút Save góc dưới phải cửa sổ.

Restart Windows Terminal xác nhận thay đổi. Starting directory giờ sẽ là thư mục mới bạn đặt. Đây là cách thay đổi starting directory trên Windows Terminal.
Làm sao thay đổi thư mục chính trong Terminal?
Thư mục chính (main directory) hay default starting directory là cùng một khái niệm trong Windows Terminal. Vào Settings → click Defaults dưới Profiles. Bỏ tích "Use parent process directory" → Browse thư mục mới → Save.
Làm sao thay đổi Terminal mặc định trong Windows Terminal?

Để đổi Terminal mặc định: mở Windows Terminal → Settings. Trong Settings, click Startup → click menu thả xuống dưới Default Terminal application → chọn lựa chọn: Windows Console Host hoặc Windows Terminal. Click Save lưu thay đổi.
