Windows Terminal logo
💻 Lập trình & DevMiễn phív1.21

Windows Terminal

Terminal hiện đại cho Windows — hỗ trợ đa tab, GPU rendering, tùy biến cao

Tải ngay
Liên kết chính thức
Hỗ trợ:Windows

Windows Terminal là terminal hiện đại của Microsoft — thay thế CMD + PowerShell cũ với đa tab, GPU rendering, WSL2 tích hợp, JSON config. Free, built-in Windows 11 từ 2022. Bài này cover setup PowerShell + WSL + SSH, 10 theme đẹp, oh-my-posh prompt, và so sánh Warp/Alacritty 2026.

Windows Terminal 2026 — terminal chuẩn cho dev Windows

Đọc nhanh trong 30 giây

Windows Terminal là terminal hiện đại MIỄN PHÍ của Microsoft, thay thế CMD + PowerShell ISE cũ. Built-in Windows 11 từ 2022, Windows 10 cần install qua Microsoft Store. Đa tab, split pane, GPU rendering (không giật khi scroll nhiều), WSL2 tích hợp native, Azure Cloud Shell, SSH client. Config JSON mạnh — font, theme, keybinding customize hoàn toàn. v1.21 (2026) thêm: AI-assist command suggestion (qua Azure OpenAI), Quake mode improved, Copilot integration beta. Open-source MIT trên GitHub.

So với terminal cũ CMD (từ 1987) hoặc PowerShell ISE (deprecated 2017), Windows Terminal modernize hoàn toàn. Competitor 2026: Warp (AI-native, cross-platform, $20/tháng Pro), Alacritty (Rust GPU terminal, minimalist, free), ConEmu (legacy Windows, vẫn tốt).

Free
MIT open-source
Built-in
Windows 11 từ 2022
1.21
Version 2026
100MB
RAM + disk usage

Bài này dành cho: Windows dev mới bắt đầu, user upgrade từ CMD/PowerShell ISE, DevOps multi-environment (PowerShell + WSL + SSH). Không cần Mac/Linux.

Vì sao dev Windows chuyển sang Windows Terminal

5 lý do Windows Terminal replace CMD + PowerShell ISE cũ:

  1. 1 Đa tab + split pane: Mở PowerShell + WSL Ubuntu + SSH server + CMD cùng cửa sổ. Ctrl+T new tab, Alt+Shift+D split horizontal, Alt+Shift+E split vertical. Không cần 4 cửa sổ riêng.
  2. 2 GPU text rendering: Scroll 100k line log mượt không lag (CMD cũ scroll chậm). Unicode + emoji render đúng (dev làm bot Discord cần emoji output).
  3. 3 WSL2 integration native: wsl command mở Ubuntu/Debian/Fedora trong 1 giây. Dev full-stack VN làm backend Linux trên laptop Windows — essential.
  4. 4 Config JSON: settings.json customize hoàn toàn. Version control được, share với team. Dễ hơn config CMD cũ qua Registry.
  5. 5 Command palette + Action: Ctrl+Shift+P (như VS Code) — tìm action bất kỳ. Không cần nhớ shortcut.
Còn dùng CMD cho use case nào?

CMD (Command Prompt) vẫn có chỗ: (1) Script batch .bat legacy. (2) Compatibility với tool Windows XP-era. (3) Maintenance Windows (sfc /scannow, chkdsk). Với dev hiện đại 2026: PowerShell 7+ trong Windows Terminal đủ 99% use case.

So sánh Windows Terminal với Warp, Alacritty, ConEmu

Tiêu chíWindows TerminalWarpAlacrittyConEmuCmder
GiáFree MITFree / $20 ProFree MITFree BSDFree
PlatformWindowsWin/Mac/LinuxWin/Mac/LinuxWindowsWindows
AI features⚠️ Copilot beta✅ Built-in
GPU render✅ Best
WSL2 integration✅ Native⚠️
Customize JSON⚠️ YAML✅ YAMLGUI.ini
RAM idle100MB400MB40MB80MB80MB
Maintained 2026✅ Active✅ Active⚠️ Slow⚠️ Slow

Khuyến nghị: - Windows dev cơ bản: Windows Terminal — free, built-in, đủ mạnh. - Windows + Mac + Linux cross-platform: Warp — AI feature đáng giá $20/tháng. - Minimal + performance: Alacritty — RAM thấp nhất, scroll mượt nhất. - Legacy Windows user: ConEmu còn dùng được nhưng update chậm.

Xem bài 5 utility cho developer 2026 — phần Warp comparison chi tiết.

Setup Windows Terminal production — PowerShell + WSL2 + SSH

  1. 1 Install Windows Terminal (1 phút): Windows 11 đã built-in — search 'Terminal' trong Start menu. Windows 10: Microsoft Store → 'Windows Terminal'. Alternative: GitHub release trực tiếp.
  2. 2 Install PowerShell 7+ (2 phút): Windows Terminal mặc định dùng PowerShell 5.1 (old). PowerShell 7 mới hơn, cross-platform, nhanh hơn. Install qua winget install Microsoft.PowerShell hoặc Microsoft Store.
  3. 3 Enable WSL2 + Ubuntu 24.04 (5 phút): PowerShell Admin → wsl --install -d Ubuntu-24.04. Reboot. First launch Ubuntu, set username + password. WSL2 tab sẽ tự xuất hiện trong dropdown Windows Terminal.
  4. 4 Config settings.json (5 phút): Ctrl+, mở settings UI hoặc 'Open JSON file'. Cấu hình đề xuất:
  5. 5 Install Nerd Font cho prompt icon (2 phút): Tải CaskaydiaCove Nerd Font. Install → chọn font này trong Windows Terminal setting.
  6. 6 Setup oh-my-posh cho PowerShell prompt đẹp (5 phút): winget install JanDeDobbeleer.OhMyPosh. Thêm vào PowerShell profile: oh-my-posh init pwsh | Invoke-Expression. Prompt sẽ hiện git branch + time + exit code.
  7. 7 SSH client config (3 phút): Windows 11 built-in OpenSSH. ssh [email protected] work ngay. Config ~/.ssh/config cho shortcut:
Bảo mật SSH key

SSH key trên Windows lưu C:\Users\<name>\.ssh\. Đảm bảo file permission đúng (chỉ owner đọc): icacls id_ed25519 /inheritance:r /grant:r "$($env:USERNAME):(R)". Xem Bảo mật tài khoản 2026 cho backup + recovery SSH key.

10 shortcut + feature Windows Terminal pro dùng daily

  • Ctrl+T — New tab (cùng profile default).
  • Ctrl+Shift+T — New tab dropdown (chọn profile: PowerShell/WSL/SSH).
  • Ctrl+W — Close tab.
  • Ctrl+Tab / Ctrl+Shift+Tab — Switch tab forward/backward.
  • Ctrl+Shift+P — Command palette (tìm action bất kỳ).
  • Alt+Shift+D — Split pane duplicate (pane hiện tại).
  • Alt+Shift+Plus — Split pane vertical.
  • Alt+Shift+Minus — Split pane horizontal.
  • Alt+Arrow — Switch active pane.
  • Ctrl+Shift+F — Find in terminal buffer.
  • Ctrl+Shift+Space — Tab dropdown.
  • F11 — Fullscreen toggle.
  • Ctrl+Scroll — Zoom text size.
  • Ctrl+= / Ctrl+- — Text size adjust.

Quake Mode (drop-down terminal như game console): Settings → Quake → win+backtick to trigger. Terminal slide down từ top màn hình. Hữu ích cho quick command giữa work flow.

Khi nào Windows Terminal không đủ + alternative

Cân nhắc chuyển Warp/Alacritty: - Cross-platform Mac/Linux: Warp hoặc Alacritty — Windows Terminal chỉ Windows. - AI-heavy workflow: Warp AI command search + explain tốt hơn Windows Terminal Copilot beta. - Performance tối đa (RAM, scroll speed): Alacritty — pure Rust GPU, 40MB RAM. - Session manager nâng cao: Tabby (Electron-based, free) — session SSH manager built-in. - DevOps heavy SSH: MobaXterm ($69/năm, Windows only) — X11 forwarding, SFTP, RDP integration.

Stay Windows Terminal cho: - Windows dev daily, không dùng Mac/Linux thường xuyên. - Budget $0 + built-in Windows 11. - Use case PowerShell + WSL2 chính. - Team dev Windows — standardize Windows Terminal đơn giản hóa setup onboard.

Câu hỏi thường gặp

Windows Terminal và PowerShell khác gì?

Windows Terminal là ứng dụng terminal (frontend UI — cửa sổ, tab, color). PowerShell là shell/interpreter (backend — parse command, execute). Windows Terminal chạy PowerShell + CMD + WSL + SSH + Azure Shell bên trong. Giống như Chrome (terminal) mở Google/YouTube (shell) — 2 layer khác nhau.

Windows 10 có dùng Windows Terminal được không?

Có, từ Windows 10 version 1903+. Install qua Microsoft Store hoặc GitHub release. Trên Windows 11 build-in sẵn. Mac/Linux: Windows Terminal KHÔNG hỗ trợ — dùng Warp hoặc native terminal (iTerm2 / GNOME Terminal).

WSL2 tốt hơn Git Bash không? Cho dev web VN?

WSL2 tốt hơn nhiều cho full-stack dev web 2026. Git Bash là MinGW porting (Unix tool Windows port) — đủ cho git + basic shell. WSL2 là Linux kernel thật chạy qua Hyper-V — npm/Node.js/Docker chạy native Linux, nhanh hơn Windows + cùng behavior production server (thường Linux). Recommend: WSL2 Ubuntu cho project, Git Bash cho quick Git operation.

Terminal chạy lệnh chậm / lag, fix thế nào?

3 nguyên nhân thường gặp: (1) Antivirus scan each command — add Windows Terminal + PowerShell vào exclusion list của Windows Defender. (2) Profile loading chậm — kiểm tra $PROFILE có load nhiều module không cần thiết. Dùng Measure-Command { . $PROFILE } để đo. (3) Oh-my-posh prompt calculate git status mỗi lệnh — disable git info trong prompt nếu repo lớn.

Có cách nào share Windows Terminal config qua nhiều máy?

Có 3 cách: (1) Settings Sync qua Microsoft Account — đang preview 2026. Đăng nhập cùng account, auto-sync. (2) Copy settings.json thủ công — file ở %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json. (3) Dotfiles repo Git — commit settings.json vào personal dotfiles GitHub repo, git clone trên máy mới.

Windows Terminal có thay thế hoàn toàn ConEmu / Cmder không?

Gần như có. Windows Terminal modern hơn, update active hơn. ConEmu còn ưu điểm: session save/restore persist qua reboot, GUI config không cần JSON. Cmder (based ConEmu) có Clink autocomplete built-in. Nếu quen Cmder: stay. Nếu fresh start 2026: Windows Terminal.

Nguồn tham khảo chính thức

Cùng danh mục

Phần mềm tương tự