How to Use Linux Terminal in Windows 11

Although Windows is the most widely used and most popular operating system for desktops and laptops, it is not as secure and open-sourced as Linux OS. That’s is why a lot of software developers and professionals prefer Linux OS.

You can access various Linux commands and software from the Linux terminal in Windows 10. In this article, we’ll give you step-by-step instructions on how to install and run the Linux terminal on Windows 10 OS.

Enable Windows Subsystem for Linux (WSL) and Install Ubuntu in Windows 10

If you intend to run a Linux terminal on Windows 10, you must first turn on the ‘Windows Subsystem for Linux’ feature. Then you can download and install your choice of Linux distribution.

The Windows Subsystem for Linux (WSL) is a feature that creates a GNU/Linux environment that allows you to run core Linux command-line tools and services directly on Windows, alongside your desktop and modern store apps.

By enabling Windows 10’s Linux subsystem, you can install and run various Linux distributions (distros) such as Ubuntu, OpenSuse, SUSE Linux, Fedora, etc.

First, Check your Windows Version

But before we get into how to enable Windows Subsystem for Linux (WSL) and install Linux, you need to check if you are running a compatible version of Windows 10. WSL is only supported on both Windows 10 64-bit (from version 1607) and Windows Server 2019.

To check your Windows version and build, go to ‘Settings’ from Windows Start menu.

How to Use Linux Terminal in Windows 11

Next, click ‘System’ setting.

How to Use Linux Terminal in Windows 11

Then, scroll down and select ‘About’ option at the bottom of the left pane to view About section.

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

There are two different types of WSL versions: WSL 1 and WSL 2. While they both provide smooth and continuous integration of Linux within Windows, WSL 2 is the latest and fastest version with supports full Linux kernel and system call compatibility. WSL 1 runs a translation layer which bridges the gap between Linux kernal and Windows.

  • To run WSL 2, you must be running Windows 10 x64 bit systems: Version 1903 or higher, with Build 18362 or higher.
  • To run WSL 1, you will need Windows 10 x64 bit systems: Version 1709 or higher, with Build 16215 or higher.

It doesn’t matter which version of WSL you want to run you must enable it first to use it. To do this, start type typing ‘Turn Windows features on and off’ into the Start Menu search field.

How to Use Linux Terminal in Windows 11

Select ‘Turn Windows features on and off’ control panel from the search result.

How to Use Linux Terminal in Windows 11

Then, scroll down to ‘Windows Subsystem for Linux’, tick the box in front of it, and click the ‘OK’ button.

How to Use Linux Terminal in Windows 11

Once the changes are applied, click ‘Restart now’ to restart your computer

How to Use Linux Terminal in Windows 11

If you want to only install WSL 1, you can now restart your computer and install your Linux distro.

Enable WSL 1 via PowerShell

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

How to Use Linux Terminal in Windows 11

Enable WSL 2

We recommend you upgrade your WSL to version 2 for faster performance speed, and to run a real Linux kernel directly on Windows 10. All you need to do is enable the ‘Virtual Machine Platform’ feature in addition to the ‘Windows Subsystem for Linux’ feature on the Windows features control panel (see below).

How to Use Linux Terminal in Windows 11

Wait for the changes to be applied, then restart your computer.

Enable WSL 2 via PowerShell

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

How to Use Linux Terminal in Windows 11

Set WSL 2 as the Default Version

Before setting up WSL 2 as your default version for all Linux distributions, download the WSL Linux kernel package update for x64 systems.

Run the .msi installer downloaded and install it. It will take only seconds.

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

Then restart your system to switch the feature from WSL 1 to WSL 2.

Install your Linux distribution of choice

WSL is enabled, now we will install a Linux distribution. First, search for ‘Microsoft Store’ in the Start Menu search field. Then, open it from the search result.

How to Use Linux Terminal in Windows 11

You’ll see a list of every Linux distributions currently available in the Windows Store which are supported by WSL.

  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS
  • openSUSE Leap 15.1
  • SUSE Linux Enterprise Server 12 SP5
  • SUSE Linux Enterprise Server 15 SP1
  • Kali Linux
  • Debian GNU/Linux
  • Fedora Remix for WSL
  • Pengwin
  • Pengwin Enterprise
  • Alpine WSL

All of theses distributions are available for free. For our tutorial, we’ll select ‘Ubuntu’.

How to Use Linux Terminal in Windows 11

From the Ubuntu distribution’s page, Click the ‘Get’ button.

How to Use Linux Terminal in Windows 11

Now, Ubuntu distribution will be downloaded and installed automatically on your computer.

How to Use Linux Terminal in Windows 11

Once the installation finished, click the ‘Launch’ button to launch the terminal. You can also launch the app from the Windows Start Menu.

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

Once, the set up finished, it will take you to the bash command line. It’s better to update the software right away. In Ubuntu, you can search for, download, and install software updates, all from the apt command.

sudo apt update

This ‘update’ command will update the Ubuntu repositories.

How to Use Linux Terminal in Windows 11

Ubuntu will download a series of package lists.

How to Use Linux Terminal in Windows 11

sudo apt upgrade

Enter ‘Y’ at the prompt to continue the installation.

How to Use Linux Terminal in Windows 11

The ‘dist-upgrade’ command upgrade packages to their latest versions.

Upgrade WSL1 to WSL 2 for Ubuntu

If you wish to upgrade the existing WSL 1 version to WSL 2 for a specific distribution. Then, run the below command in PowerShell.

How to Use Linux Terminal in Windows 11

Now, you can access Linux commands and software on a Windows 10 system using this Ubuntu Environment.

Bash shell on Windows 10

You now have a full command-line ‘bash’ shell on your system based on the Linux distribution. You can access all the Linux commands and applications via that bash shell.

To run bash shell, type ‘bash’ into the Start Menu search field and click to open the bash command-line tool.

How to Use Linux Terminal in Windows 11

Now, you can start running commands there.

How to Use Linux Terminal in Windows 11

Enjoy Linux on Windows!

Недавно мы говорили о том, как выполнять различные Linux утилиты в Windows. Но для Windows 10 это, похоже, уже неактуально. Уже давно в Windows 10 появилась нативная поддержка оболочки Bash, в окружении дистрибутива Ubuntu благодаря подсистеме Linux для Windows 10.

  • Что такое WSL?
  • Использование WSL
  • Выводы

Что такое WSL?

В начале цикла разработки Windows 10, Microsoft открыла страницу обсуждения и голосования за новые функции. Там зашел разговор о командной строке Windows. Разработчики спросили сообщество, что им не нравится в командной строке Windows и какие функции они хотели бы увидеть в новой версии.

Многие пользователи заявили что им нужны небольшие улучшения командной строки, другие же сказали что неплохо было бы иметь возможность использовать инструменты Linux / Unix и Bash в Windows 10. Много пользователей согласились с тем, что нужно сделать проще использование этих инструментов в Windows.

Прислушиваясь к голосу сообщества, в Microsoft первым делом улучшили CMD, PowerShell и другие инструменты командной строки. А во-вторых, они сделали, то что казалось невероятным несколько лет назад, они добавили реальный, нативный Bash вместе с поддержкой всех необходимых инструментов командной строки, работающих непосредственно на Windows, в среде, которая ведет себя как Linux. Это не какая-нибудь виртуальная машина, это реальный Linux в Windows.

С технической точки зрения, это вообще не Линукс. Каждая система GNU Linux должна быть основана на ядре Linux, здесь же просто есть возможность выполнять двоичные файлы, которые работают в Ubuntu.

С каждой новой версией  в WSL всё меньше ограничений, вы уже можете использовать сервисы, а также с WSL 2 стали доступны графические приложения. Решение предназначено для разработчиков, которые хотят запускать linux-утилиты из командной строки Windows. Да, эти команды имеют доступ к файловой системе Windows, но вы не можете использовать их для автоматизации своих задач или в стандартной командной строке Windows. Теперь давайте разберемся как установить WSL в Windows 10.

Проверка версии системы

Вы можете установить WSL в Windows 10 начиная с версии Windows 10 Insider Preview 14316, а для WSL версии 2, которая принесла много улучшений нужно обновление Windows 10 19041 или новее. Сначала убедитесь, что у вас правильная версия Windows. Для этого октройте PowerShell кликнув правой кнопкой по иконке пуск:

How to Use Linux Terminal in Windows 11

Затем выполните команду:

How to Use Linux Terminal in Windows 11

Если отображается версия как на снимке экрана или выше, значит всё хорошо. Иначе идите обновлять систему.

Активация WSL и виртуализации

Чтобы активировать компонент Windows Subsystem for Linux можно использовать уже открытую командную строку PowerShell. Для этого выполните:

Затем выполните ещё одну команду чтобы включить компонент виртуализации Hyper-V:

Когда эта работа будет выполнена перезапустите компьютер, чтобы все компоненты установились.

Активация WSL 2

How to Use Linux Terminal in Windows 11

Затем установите загруженный файл:

How to Use Linux Terminal in Windows 11

Чтобы всегда по умолчанию использовалась версия WSL 2 необходимо выполнить такую команду:

How to Use Linux Terminal in Windows 11

Если вы всё же получаете ошибку, с сообщением о том, что такой опции у этой команды нет, значит у вас старая версия Windows, обновляйте. Если команда не выдала ошибки – значит настройка WSL завершена успешно.

Установка Linux

Далее вам надо установить какой-либо дистрибутив Linux из магазина Microsoft. Достаточно просто открыть магазин и набарть в поиске имя дистрибутива, например Ubuntu, затем нажмите кнопку Get:

How to Use Linux Terminal in Windows 11

Дождитесь завершения установки и запустите загруженный дистрибутив из главного меню:

How to Use Linux Terminal in Windows 11

Настройка дистрибутива

При первом запуске будет выполняться настройка окружения. Вам необходимо указать имя пользователя:

How to Use Linux Terminal in Windows 11

Затем два раза пароль:

How to Use Linux Terminal in Windows 11

После этого вы сможете пользоваться оболочкой Bash в Windows 10:

How to Use Linux Terminal in Windows 11

Установка X сервера

How to Use Linux Terminal in Windows 11

Затем просто установите.

Запуск X сервера

После завершения установки на рабочем столе появится ярлык. В первом окне выберите Multipe windows чтобы окна программ, выполняемых на X сервере интегрировались в систему:

How to Use Linux Terminal in Windows 11

Затем выберите, что клиентов запускать не надо – Start no client:

How to Use Linux Terminal in Windows 11

Поставьте все галочки, затем нажмите кнопку Next, а потом Finish для завершения установки.

How to Use Linux Terminal in Windows 11

Брандмауэр Windows тоже попросит разрешить доступ этому приложению в сеть. Надо разрешить.

Настройка подключения

Чтобы настроить подключение к X серверу из WSL нужно узнать какой адрес система Windows присвоила WSL окружению, для этого вернитесь к PowerShell и выполните:

:/>  Как удалить торрент с компьютера полностью с windows 7

How to Use Linux Terminal in Windows 11

В данном случае это 172.25.224.1. Выполните в окружении дистрибутива такую команду:

Шаг 9. Установка и запуск приложений

Для установки приложений в дистрибутив необходимо сначала обновить списки репозиториев:

Затем установите графическое приложение, например, Firefox:

sudo apt install firefox

После этого его можно запустить:

На снимке вы видите графический интерфейс WSL для браузера Firefox, запущенного в Linux:

How to Use Linux Terminal in Windows 11

Использование WSL

Установка WSL Windows 10 завершена. Теперь у вас есть полноценная командная строка Ubuntu в Windows с оболочкой Bash. Поскольку используются одни и те же двоичные файлы, вы можете устанавливать программное обеспечение с помощью apt из репозиториев Ubuntu. Можно установить любое приложение, но не все будут работать.

Если вы раньше уже пользовались Bash в Linux или MacOS, то будете чувствовать себя здесь как дома. Здесь не нужно использовать команду sudo, поскольку у оболочки уже есть права администратора. Ваша файловая система Windows доступна в /mnt/c.

How to Use Linux Terminal in Windows 11

Для управления и перемещения по каталогам используйте те же команды что и в Linux. Если вы привыкли к стандартной оболочке Windows, то вот основные команды, которые вам могут понадобится:

  • cd – изменить текущий каталог;
  • ls – посмотреть содержимое каталога;
  • mv – переместить или переименовать файл;
  • cp – скопировать файл;
  • rm – удалить файл;
  • mkdir – создать папку;
  • vi или nano – открыть файл для редактирования.

Важно также понимать, что в отличии от WIndows, оболочка Bash и ее окружение чувствительны к регистру. Другими словами, file.txt и File.txt, это совсем разные файлы.

Для установки и обновления программ необходимо использовать команду apt-get. Вот небольшой список ее  параметров:

  • apt install пакет – установить пакет;
  • apt search слово – поиск пакета по слову;
  • apt upgrade – загрузка и установка последних обновлений дистрибутива.

Не забудьте, что устанавливаемые в этой оболочке программы, ограничиваются по области действия оболочкой. Вы не можете получить доступ к ним из обычной командной строки PowerShell, CMD или в любом другом месте Windows. Также WSL не может напрямую взаимодействовать с исполняемыми файлами Windows, хотя обе среды имеют доступ к одним и тем же файлам на компьютере.

Выводы

Использование Linux в Windows как нельзя лучше подойдёт для разработчиков, но может понадобиться и начинающим пользователям, которые хотят познакомиться с системой. А что вы обо всём этом думаете? Использовали ли когда-нибудь WSL? Напишите в комментариях!

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Если вы иногда все же используете операционную систему от Microsoft, вам, наверное, очень нужны некоторые утилиты Linux в windows. Было бы очень удобно использовать стандартные утилиты командной строки для фильтрации вывода, сортировки, фильтрации и потокового редактирования, в Windows, где такие функции не поддерживаются.

Для реализации этого есть несколько решений. В этой статье мы рассмотрим только два из них. Первое, о котором вы, возможно, уже слышали, а может, уже и используете – Cygwin. Второе, нечто более интересное и новое – Cash. Начнем с Cygwin. В последней версии Windows 10 появилось и третье решение – возможность запускать linux команды в windows нативно, с помощью специальной подсистемы. Об этом читайте в отдельной статье.

  • Cygwin
  • Cash
  • Выводы

Cygwin

Cygwin – это набор инструментов, обеспечивающий Unix подобную среду в Windows. Здесь нельзя запускать уже существующие утилиты для Linux. Для того чтобы выполнить linux команду из Windows Cygwin, ее нужно сначала перекомпилировать.

Тем не менее пересобрано уже достаточно много программного обеспечения. Cygwin даст вам Linux подобную среду со многими утилитами, к которым вы уже привыкли в Linux. Его можно использовать как для стандартных утилит таких как команда cp windows, так и для подключения к удаленному серверу по ssh.

Установка Cygwin

How to Use Linux Terminal in Windows 11

Для установки вам придется пройти несколько шагов мастера, по умолчанию программа будет установлена в C:Cygwin:

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

С установочным пакетом не поставляется полный набор окружения. Оно будет загружено в процессе установки. В этом окне нужно выбрать сервер для загрузки компонентов:

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

Затем необходимо выбрать пакеты, которые нужно загрузить и установить. Доступно довольно-таки много программ и они рассортированы по категориям. Если вы не знаете нужен ли вам тот или иной пакет, оставьте значение по умолчанию. Вы сможете установить их потом:

How to Use Linux Terminal in Windows 11

Осталось только нажать Next для начала загрузки и завершения установки.

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

Добавление Cygwin в Path

После завершения установки, чтобы выполнить команды linux в windows с максимальным удобством, желательно добавить папку с исполняемыми файлами Cygwin в переменную среды Path.

Вы можете запустить терминал Cygwin, кликнув по ярлыку на рабочем столе. Откроется терминал с папкой C:Cygwinin

Здесь можно выполнять все нужные linux команды в windows, но вы не сможете их выполнить в другой директории или другом терминале.

Чтобы решить эту проблему, необходимо добавить папку Cygwin в переменную Path. Откройте окно свойства системы с помощью сочетания клавиш Win+Pause/Break, затем выберите пункт Дополнительные параметры системы на левой панели:

How to Use Linux Terminal in Windows 11

На вкладке дополнительно выберите Переменные среды:

How to Use Linux Terminal in Windows 11

Найдите в списке переменную Path и нажмите Изменить:

How to Use Linux Terminal in Windows 11

Добавьте в конец строки вот такую запись:

How to Use Linux Terminal in Windows 11

Обратите внимание, что все пути должны быть разделены точкой с запятой. Осталось нажать Ок и тестировать выполнение Linux команд в Windows.

Cash

Это кое-что совсем новое. Утилита с открытым исходным кодом Cash, это кроссплатформенная реализация командной оболочки Linux на JavaScript. Цель этого проекта обеспечить более гибкую, простую альтернативу Cygwin, для тех кто хочет чувствовать себя в WIndows, как и в Linux.

Установив Cash, вы сможете выполнить linux команду из windows в любом эмуляторе терминала, в том числе в стандартной командной строке Windows.

На данный момент поддерживаются только некоторые утилиты linux для windows. Вот список поддерживаемых:

Так как утилита еще находится на стадии разработки, то список команд Linux в Windows будет постоянно увеличиваться. Вы также можете проголосовать за добавление команд которые вам нужны.

Вот как все работает:

Что самое интересное, вы можете комбинировать Windows и Linux команды. Например, вы можете выполнить:

И команда правильно отработает. Сначала выполнится ipconfig, а затем результат будет отфильтрован с помощью Grep.

Установка Cash в Windows

После того как Node.js Будет установлена, можно переходить к установке Cash. Его можно установить в нескольких режимах:

  • Ручное использование Cash – нужно выполнить cash чтобы начать запускать linux команды
  • Глобальное использование – linux команды доступны во всех терминалах windows
  • Установить только некоторые команды – вы можете выбрать компоненты для установки если не хотите ставить все

Для установки Cash глобально откройте командную строку Windows с помощью Win+R:

npm install cash-global -g

Установка может занять несколько минут, в зависимости от скорости вашего интернет-соединения. После завершения установки вы можете сразу тестировать Linux команды в Windows.

Как я уже говорил, проект Cash еще на стадии разработки и есть вероятность что вы столкнетесь с ошибками. Не забудьте сообщить о найденных ошибках разработчикам, чтобы помочь улучшить проект. Если для вас критична стабильность лучше использовать старый добрый Cygwin.

Нам, пользователям Linux нечасто понадобиться использование unix команд в windows и такие инструменты . Мы можем использовать Linux команды напрямую в нашей системе. Но если вы по каким-либо причинам не можете установить Linux, и все же хотите использовать linux команды, это может быть отличным решением.

A terminal emulator is a program that emulates the functionalities of the traditional computer terminals. In simple words, unlike the classic terminal that performed functions using hardware, the terminal emulator executes the same tasks in software.

A terminal emulator enables a host computer to access a remote computer using a command-line or graphical interface.

Apart from accessing files on the other computer, the program also allows the host computer to run applications on the remote machine.

Moreover, the terminal emulator also enables file transfer between the host and the remote pc. Such communications between the two computers are made attainable using the cryptographic network protocol – Secure Shell (SSH).

Developers use terminal emulator clients to gain shell access to the computer. The text-mode interface provides programmers more control over all functions and expedites processes. Below we will discuss the best terminal emulators for Windows. There are many variants, and each of them has its pros and cons.

Top 15 Terminal Emulator for Windows

While it is possible to integrate ‘bash shell’ – a Unix shell, with Windows 10, developers still choose a more customizable emulator. Below we have listed the top 10 terminal emulators for Windows:

Cmder is one of the most popular portable terminal emulators available for Windows OS. The programs official website states that it was developed ‘out of pure frustration’ noting that there were no available alternatives in the market. The software package is written in C++ and Powershell.

How to Use Linux Terminal in Windows 11

The free and open source software is built on popular console emulator – ConEMu. Moreover, Cmder adds enhancements from Clink that offer bash-style completion. It also presents Unix capabilities to Windows by extending compatibility with PowerShell, MinTTY, myysgit and Cygwin.

Pros

  • The portable version of the software allows programmers to run the emulator from a USB drive or Cloud without installing.
  • Monokai color scheme – Cmder makes its appearance better than ConEmu by leveraging Monokai color scheme that allows customizable colors and transparency schemes.
  • ConEmu coordinates perfectly with command line applications such as MinTTY, CMD and Powershell.
  • Smoothly and efficiently works with the VS Code terminal.

Cons

  • Cmder works slower than ConEmu.
  • Specific commands have problems with non-Unicode characters.
  • The portable version does not come with Unix commands; only the full version has that support.

ZOC Terminal Emulator

How to Use Linux Terminal in Windows 11

One of its significant advantages is that it offers a tabbed interface, allowing developers to work on multiple terminal sessions simultaneously. The software package is fully customizable to match the personal style of developers.

:/>  Обход и политика выполнения сценария power shell

ZOC Terminal’s bonus features include line graphics, and mouse support and keyboard remapping. Communicating with hosts using telnet and Secure Shell is easy.

  • Supports dial-up connection – It can communicate to host and mainframes via modern dialing and direct serial connections.
  • Automatic highlight feature – allows to search for text and highlight it.
  • Easy navigation – Using a tabbed interface, developers can easily navigate to multiple sessions from the same window.

Download Zoc terminal emulator for windows

ConEmu console emulator

How to Use Linux Terminal in Windows 11

ConEmu is one of the oldest software when it comes to terminal emulators, but even so, the team behind it have continuously introduced new features over time. The software is popular among programmers as it provides deep customizations that include hotkeys, custom color palettes, and auto-hideable mode.

  • It is free, open-source and actively developed.
  • It integrates with Explorer.
  • Fully compatible with PuTTY, Cygwin, CMD and PowerShell.
  • Easy to customize most of the settings such as shortcuts, fonts, background image, and colors.
  • The tool supports dynamic window resizing.
  • GUI applications can run on a ConEmu tab.
  • ConEmu comes with in-built screenshot feature.
  • The tool doesn’t include shell features such as tab completion and remote connections.
  • Poor scrolling support – Scrolling navigates to blank space instead of text content.
  • Unattractive default look.

Mintty console emulator for Cygwin

Mintty is an open-source console emulator for Cygwin – Unix-like functionality for Windows. As Cygwin natively runs on Windows OS, mintty does not need a display server. The software tool is perfect for programmers that predominantly use Cygwin for Windows shell. In fact, since 2011 mintty is Cygwin’s default terminal.

How to Use Linux Terminal in Windows 11

  • Drag and Drop feature – mintty offers the drag and drop feature that saves time and eases the job for programmers.
  • Xterm compatibility – mintty is compatible with a standard terminal emulator for the X Window System – Xterm.
  • Smooth scrolling – As opposed to ConEmu which scrolls blank space, mouse scrolling on mintty software scrolls the content.
  • Cygwin and MSYS support – As it is the native Windows program around Cygwin, it allows deep customizations such as resizable windows, background color, transparency, and font.
  • It supports UTF-8 that enables encoding of all characters.
  • No support for WSL.
  • Typical windows applications perform poorly.
  • No multiple tab support.

MobaXterm emulator for remote computing

MobaXterm is one of the best all-in-one application for remote computing. It is an ultimate toolbox – where it provides several network tools and an unmatchable amount of functions in a single window.

How to Use Linux Terminal in Windows 11

One of its major perks is that it integrates the number of server clients including SSH, RDP, telnet, SFTP, VNC, and rlogin. Additionally, it provides a set of Unix commands such as bash, grep, rsync and many more.

  • It offers a password vault.
  • It integrates with PuTTY in Windows.

Babun -a Cygwin Shell

Babu is a shell that is built on Cygwin – Unix-style environment on Windows. The software is entirely free and is often touted as “a Windows shall you will love!.” It brings zsh, oh-my-zsh – a community-driven framework for organizing Zsh configuration, to Windows.

How to Use Linux Terminal in Windows 11

The pre-configured Cygwin on Babun comes with many add-ons and needs only little to no setup. Moreover, it has a plugin-oriented architecture. Babun is perfect for developers that want to use more shell provisions as It comes with a package manager known as ‘pact.’

  • It comes with Linux-like powerful package manager – Pact.
  • Cygwin compatibility – Programmers can execute Linux applications on Windows OS from the Linux-style interface.
  • Not compatible with older Cygwin addons.
  • Not actively developed or updated.
  • Babun has no tab support.

PuTTY – Most popular terminal emulator

PuTTY is a free serial console, terminal emulator and the most popular SSH client. Written in C language and developed by Simon Tatham, PuTTY supports several network protocols such as Telnet, Secure copy protocol (SCP) rlogin, and SSH. It is one of the oldest terminal emulators that are still actively developed and updated.

How to Use Linux Terminal in Windows 11

Although initially developed for Windows OS, it is now ported to many operating systems. It does not support session tabs; several wrappers provide that function. Commonly, PuTTY is leveraged to connect routers and switches using SSH.

  • Availability of Source Code – Programmers can tweak things as the entire source code is available.
  • Trustworthy and reliable application- PuTTY has earned a name for its trust among developers
  • Easy to setup and use.
  • It supports a wide variety of protocols.
  • Cross-platform compatibility.
  • No tabbed interface.
  • It does not save passwords.
  • It is very tiresome to set up logging and tracing.
  • Option for the global setting is missing; therefore, all settings for all connections have to be done individually.

How to Use Linux Terminal in Windows 11

  • It is a cross-platform application.
  • KiTTY offers several additional features such as – Automatic login script, SSH Handler, Session Filter, alternative command-line options, instant begin a duplicate session and WinSCP integration.
  • Automatically reconnects used server upon restart.
  • Multiple session launcher functionalities – the software tiles them side by side.
  • Connect through Telnet and SSH
  • Leverages Unicode for character compatibility.
  • Stores login credentials.
  • Some of its graphical features include – icon for each session, send to tray and transparency.

Xshell terminal emulator

Xshell is a terminal emulator that mirrors the presence of virtual console. The software enables the computer to work as a terminal and make it easy for programmes to access data in a mainframe. Although it is designed for Windows, interacting with Linux servers is very easy. The program is marketed as the “Industry’s Most Powerful SSH Client“.

How to Use Linux Terminal in Windows 11

  • It supports multiple languages.
  • Tabbed interface.
  • It offers multiple session management, therefore, making it easy for developers to manage various sessions simultaneously.
  • It has features such as channel monitoring and dynamic port forwarding.
  • It supports UTF-8 coding.
  • Automates tasks using VBScript.
  • Supports Python, JScript, and VBScript.
  • Software reserves over 50 megabytes of drive space.
  • Not cross-platform software.
  • It is a paid software that comes with a price tag of $89/year.
  • The free version allows opening only four tabs.

ConsoleZ – an enhancement for Windows console

ConsoleZ is an enhancement for Windows console that is not a shell akin to the above alternative terminal emulators. As such, it does not execute many of the shell features such as syntax coding and command history.

How to Use Linux Terminal in Windows 11

While the inbuilt Windows console does not come with customization options, ConsolseZ acts as a perfect terminal emulator by making it more accessible and productive. Using ConsoleZ, programmers can modify the look by adding themes, tabs and many other visual tweaks to make the dull looking Windows Command Prompt more vibrant.

  • Built-in search box eases the need to find commands.
  • Tab Grouping – Tabs can be grouped so that a common command can be executed on multiple sessions at the same time.
  • Quake style console animation.
  • Strict mono-space font rendering.
  • The application is small and portable.
  • ConsoleZ is multilingual – supports Japanese, French, German, and Russian.
  • It supports typographic ligatures.

Console2 – best terminal emulators and command prompt for Windows

Console2 is one of the best terminal emulators and famous command prompt alternative for Windows. The program requires installations and is filled with lots of features that the original Windows command prompt lacks.

How to Use Linux Terminal in Windows 11

  • The software is free and open source.
  • Configurable hotkeys – The purpose of the hotkey is to trigger actions easily, and therefore Console2 allows programmers to configure hotkeys as per their requirements.
  • Full-Screen mode is available.
  • It integrates with Cygwin, PuTTY, Command Prompt and PowerShell.
  • Dynamically resize the window.

12 – z/Scope Terminal Emulator

z/Scope is one of the most robust and professional terminal emulators in the market. It is a modern multi-protocol, multi-host terminal emulation runs on almost all versions of the Windows operating system. The program uses a modern tabbed interface and provides access to multiple terminal-based applications simultaneously.

How to Use Linux Terminal in Windows 11

  • It supports several host access such as IBM TN3270E / TN3270 emulation, SSH and FTP integrations.
  • Full keyboard remapping.
  • Tabbed interface for easy navigation.

Hyper – a cross-platform terminal emulator

Hyper is another alternative terminal emulation that can be run on almost all versions of operating systems. Using Hyper, programmers can connect to multiple systems using SSH and dial-up modem.

How to Use Linux Terminal in Windows 11

Most commonly, developers use the software to establish a dial-up connection to other computers. Moreover, it is also leveraged to transfer data between networks such as host and remote servers.

  • The software is fully customizable.
  • Offers cross-platform and is made possible using Electron.
  • The software is unstable.
  • Electron uses a lot of resources.
  • Development activity is very slow.

How to Use Linux Terminal in Windows 11

  • The software allows a free trial.
  • HTML and CSS support.

Terminus – an open source windows terminal emulator

Terminus is an open source software that is designed to work on multiple operating systems including Windows. The software is polished and looks sophisticated at first glance.

How to Use Linux Terminal in Windows 11

  • It is an open-source and cross-platform software.
  • It integrates with CMD, PowerShell, and WSL.
  • The software comes with several plugins.
  • The software occupies over 80MB of drive space and uses a lot of resources.
  • Programmers complain that some functions fail while running the software.

Above are the best 15 terminal emulators for Windows. There are hundreds of other products available in the market but the above mentioned are the best in business for now.

Linux on Windows is a reality, thanks to the partnership between Canonical (parent company of Ubuntu) and Microsoft.

But Bash on Windows (or Windows Subsystem for Linux) was not available to everyone immediately. People had to install the Windows 10 technical preview to install Linux on Windows 10.

:/>  Где находится кнопка хоум на компьютере

That’s not the case anymore; it is pretty easy to install and use WSL now!

What is Bash on Windows?

Bash on Windows provides a Windows subsystem, and Linux runs atop it. It is not a virtual machine or an application like Cygwin. It is a complete Linux system inside Windows 10/11. It allows you to run the same Bash shell you find on Linux. You can run Linux commands inside Windows without installing a virtual machine or dual-boot Linux and Windows.

You install Linux inside Windows like a regular application. This is a good option if your main aim is to learn Linux/UNIX commands.

Check for System Compatibility

You must be running specific versions of Windows for the different features described in this article. Requirements necessary for a particular feature to work are described under its titles. To check your Windows version, search for about in the start menu.

How to Use Linux Terminal in Windows 11

Search about in the Start Menu

Here, you can see the build of your PC, as shown in the screenshot below. Make sure it is matching with the respective requirements described under various sub-headings here in this article.

How to Use Linux Terminal in Windows 11

Checking the build number of Windows

  • You must be running Windows 10 version 1607 (the Anniversary update) or above.
  • WSL only runs on 64-bit versions 32-bit versions are not supported.

Install Bash in Newer Windows 10 and 11

The good thing is that the latest set of upgrades, including the stable release of WSL v1.0 released from Windows, makes it easier to install Bash on Windows.

There are two ways you can go about it:

  • You can get it in one click from Windows Store.
  • Choose to use the command-line.

Install WSL Using the Microsoft Store

How to Use Linux Terminal in Windows 11

Launch the Microsoft Store and search for “Windows subsystem”.

Install it, and you’re done with the first step. Next, you have to install a Linux distribution.

So, if you try to open WSL, you will get to see a window informing you that no distribution is installed.

How to Use Linux Terminal in Windows 11

Similar to WSL, search for the distribution on Microsoft Store, and then install it.

For instance, I installed Ubuntu from the store as shown in the image below:

How to Use Linux Terminal in Windows 11

And, then proceed to “Open” it and it will automatically start installing. The procedure is same for any distribution you choose.

We then have to configure it, which is discussed right after installing it through the command line.

Install WSL and the default distribution using the command-line

How to Use Linux Terminal in Windows 11

Once finished downloading and installing, you need to reboot to apply the changes.

Whether you installed WSL and Ubuntu using the Microsoft Store or the command line, you need to configure it.

Here’s how it is done:

🛠️ Configure the newly installed Ubuntu

After rebooting, search for Ubuntu in Start Menu and open it.

How to Use Linux Terminal in Windows 11

Open Ubuntu from Windows 11 start menu

You will now be inside the terminal window of Ubuntu.

How to Use Linux Terminal in Windows 11

Logged into new Ubuntu 22.04 LTS in Windows 11 WSL

sudo apt update
sudo apt full-upgrade

After completing the update, you are good to go with Ubuntu in WSL.

How to Use Linux Terminal in Windows 11

Running Ubuntu in WSL

Install Bash on Older Windows

If you have the minimum requirements mentioned in the beginning but are running an older Windows build, the previous method may not be supported. So there is a manual installation method.

Also, there are both WSL1 and WSL2 available. WSL2 offers some upgraded functionalities but has some minimum requirements to run:

  • For x64 systems: Version 1903 or later, with Build 18362 or later.
  • For ARM64 systems: Version 2004 or later, with Build 19041 or later.

So this brings us to two possibilities to install:

  • Install Ubuntu with WSL1
  • Install Ubuntu with WSL2

Install Ubuntu with WSL 1

How to Use Linux Terminal in Windows 11

  • Search for Windows Features in Start Menu.
  • Turn on Windows Subsystem for the Linux feature.
  • Reboot your system.
  • Open the Windows store and search for the distribution of your choice to install.

Install Ubuntu with WSL 2

Reboot the device once the command is completed.

Now, download the Linux Kernel Update Package for x64 machines from the official website. If you are using ARM64 devices, use this link to download the latest kernel update package.

If you are not sure about the device architecture, enter the command below in Powershell to get the type:

When the file is downloaded, double-click on it and finish the installation of the Kernel update package.

Now, open PowerShell and run this command to set WSL 2 as the default version when installing a new Linux distribution:

Once WSL2 is set as the default version, you can now install the Linux distribution of your choice.

Go to Windows Store and install Ubuntu, as described in the earlier steps. and the rest of the procedure is already described above.

Enjoy Linux inside Windows.

🔧 Troubleshooting Tip 1

“The WSL optional component is not enabled. Please enable it and try again.”

You may see an error like this when you try to run Linux inside Windows 10:

And when you press any key, the application closes immediately.

The reason here is that the Windows Subsystem for Linux is not enabled in your case. You should enable it as explained in this guide. You can do that even after you have installed Linux.

🔧 Troubleshooting Tip 2

Installation failed with error 0x80070003

This is because Windows Subsystem for Linux only runs on the system drive i.e. the C drive. You should ensure that when you download Linux from the Windows Store, it is stored and installed in the C Drive.

How to Use Linux Terminal in Windows 11

How to Use Linux Terminal in Windows 11

Select the C-Drive as storage space for new apps in Windows 11 settings

🔧 Troubleshooting Tip 3

“Failed to attach disk Error”

Sometimes, this error will appear when we reinstall the Ubuntu in WSL.

How to Use Linux Terminal in Windows 11

File not found error in WSL

wsl -l -v

wsl –unregister Ubuntu

You can restart the ubuntu app and it will run without any issues.

You can refer to more common troubleshooting methods from the official website.

Run GUI Apps On Windows Subsystem for Linux

The ability to run GUI apps on Windows Subsystem for Linux was introduced with the WSL 2 release in May 2020.

Windows Subsystem for Linux (WSL) with WSL2 now supports running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience. This allows you to install Linux applications and seamlessly integrate them into Windows desktop, including features like “pin to taskbar”.

One crucial point is that you must be on Windows 10 Build 19044+ or Windows 11 to access this feature.

Step 1: Enable/Update WSL 2

This procedure has been explained in the above section and you can refer to it.

Step 2: Download and Install Graphics drivers

Once installed, you are all done.

Step 3: Install some GUI Apps

Now, go to your Ubuntu app and install any GUI app using the APT package manager. You should note that running apps from other sources like flatpak are problematic within WSL.

sudo apt install gedit -y

How to Use Linux Terminal in Windows 11

Run Gedit text editor GUI in WSL Ubuntu

Install Linux Bash Shell on other older Windows 10

If you cannot get the Fall Creator’s update on Windows 10 for some reason, you can still install it if you have the Anniversary update of Windows 10. But here, you’ll have to enable developer mode. I still recommend upgrading to the Fall Creator’s update or the latest Windows 10 2004 version update though.

Press Windows Key + I to access Windows system settings. Here, go to Update & Security:

How to Use Linux Terminal in Windows 11

Select Updates&Security option in Windows system settings

From the left side pane, choose “For developers.” You’ll see an option for “Developer mode.” Enable it.

How to Use Linux Terminal in Windows 11

Select For Developers option from the side pane

Now search for Control Panel and in Control Panel, click on “Programs”:

How to Use Linux Terminal in Windows 11

Select Programs from the Windows Control Panel

In Programs, click “Turn Windows features on or off”:

How to Use Linux Terminal in Windows 11

Select Turn Windows features on or off from the Programs and Features section

When you do this, you’ll see several Windows features. Look for “Windows Subsystem for Linux” and enable it.

How to Use Linux Terminal in Windows 11

Select the Windows Subsystem for Linux checkbox

You’ll need to restart the system after doing this.

How to Use Linux Terminal in Windows 11

Restart the device to apply the changes

After restarting the computer, click the start button and search for “bash”.

How to Use Linux Terminal in Windows 11

Select Bash from Windows Start Menu

How to Use Linux Terminal in Windows 11

Running Ubuntu inside Windows

Once this is done, go back to the Start menu and search for Ubuntu or Bash.

How to Use Linux Terminal in Windows 11

Search for Ubuntu or Bash in Windows Start Menu

Now you have a command line version of Ubuntu Linux. You can use apt to install various command line tools in it.

How to Use Linux Terminal in Windows 11

Checking the working of Bash shell in Windows

💬 I hope you find this tutorial helpful for installing bash on Windows and experimenting with Linux GUI apps on Windows. No wonder WSL lets you play with Linux inside of Windows. If you have questions or suggestions, feel free to ask.