How to install & use the new windows 10 terminal

Содержание:

основные черты

Эта программа включает в себя большое количество функций для программистов, системных администраторов и сетевых администраторов. Он включает в себя все необходимые сетевые инструменты для правильного выполнения работы, например, он включает в себя очень полный клиент SSH, X11, клиент RDP, клиент VNC, клиент FTP, Mosh и многое другое, как будто этого было недостаточно, он также позволяет нам чтобы поднять на локальном компьютере сервер SSH / SFTP для безопасного подключения к нам, кроме того, мы также можем создать сервер TFTP, FTP, HTTP, Telnet, VNC и даже сервер iperf для проверки скорости в локальной сети. Эта программа позволяет запускать Unix / Linux команды, основанные на bash в самой операционной системе Windows, как если бы мы были в подсистеме Windows Linux, но без необходимости ее установки на нашем компьютере.

MobaXterm имеет много преимуществ перед всеми аналогичными программами, например, если мы подключимся к удаленному SSH-серверу, мы получим консоль для ввода команд, но с левой стороны мы получим все дерево каталогов для управления файлами через SFTP, потому что Эта программа также включает SFTP-клиент для безопасной передачи файлов и папок. Кроме того, благодаря поддержке X11 удаленные приложения также можно просматривать прямо из этой программы.

Один из аспектов, который нам больше всего понравился в MobaXterm, — это его дизайн, у него интуитивно понятный пользовательский интерфейс, который, несмотря на множество вариантов конфигурации, идеально подходит как для новичков, так и для более опытных пользователей.

MobaXterm в настоящее время имеет две версии, MobaXterm Home нацелена на домашних пользователей, которые хотят эффективно управлять своим оборудованием, у нас также есть версия MobaXterm Professional, предназначенная для профессиональных сред, эта последняя версия включает в себя множество дополнительных функций и позволяет настраивать программное обеспечение. . Например, в бесплатной версии мы можем установить максимум 12 удаленных сеансов, максимум 2 туннеля SSH и 4 макроса, однако в бесплатной версии ограничений нет.

Эта программа совместима только с операционными системами Windows, у нас есть «Portable» версия, не требующая установки, и другая версия с установщиком. Если вы собираетесь протестировать программное обеспечение, мы рекомендуем «Portable» версию, в противном случае, если вы собираетесь использовать его постоянно, мы рекомендуем версию с установщиком, потому что мы можем установить дополнительное программное обеспечение для увеличения его функциональности.

Settings

Settings are accessed from the drop-down menu or Ctrl + , (comma). The configuration is defined in a single file, so you may be prompted to choose a text editor. VS Code is a great choice, although Notepad is fine if you’re happy to edit without color-coding and syntax checking.

controls:

  1. , which apply to all profiles
  2. , which define profiles
  3. , and

The file uses the following format:

Defaults are defined in . Open it by holding down Alt when clicking Settings in the drop-down menu.

Warning: do not change the defaults file! Use it to view default settings and, where necessary, add or change a setting in .

Global Settings

The following global settings are the most useful, although more are documented in the Terminal documentation.

defines the GUID of the profile used as the default when Windows Terminal is launched.

Set to to automatically copy selected text to your clipboard without having to press Ctrl + Shift + C.

Set to to just copy plain text without any styling. (I wish this were the default for every application everywhere!)

Set and to the number of characters for the horizontal and vertical dimensions.

can be set to:

  1. : each tab is the same width (the default)
  2. : each tab is set to the width of its title, or
  3. : inactive tabs shrink to the width of their icon.

sets an array which prevents profiles being automatically generated. For example:

This would disable all generated profiles; remove whichever ones you want to retain.

Profile Settings

New profiles are defined by creating an object group in the , array. A WSL2 Ubuntu example:

Each profiles is defined with the following settings:

setting description
a unique identifier (required). For new profiles, you can generate a GUID online at guidgen.com
the profile generator. This is only used when a profile has been automatically added and must not be edited.
the executable to run assuming no is set. For example, this could be an SSH command such as
the directory the shell starts in. For WSL distros, this is best set to where is the user created during installation
the profile name shown in the drop-down menu
the name shown in the tab title
set to force the or in bash
the full path to the icon shown in the drop-down and tab, e.g. . 24-bit PNGs are the best option; unfortunately, SVGs are not supported
if set , the profile is not displayed in the drop-down menu
use a specific font
use a specific font point size integer
use a specific font weight. This can be an OpenType integer or a keyword: , , , , , , , , , ,
padding around text at the edge of the window. One, two, or four comma-delimited values can be set, e.g. to set left, top, right, and bottom respectively
the anti-aliasing method. Set to (the default), , or
the cursor type. Set to (the default), , , , or
the height of a cursor defined as an integer between and
the cursor color, defined as or

Theme-specific settings include:

setting description
the name of a color scheme as defined in or the list in ()
set to use a frosted-glass background effect
the acrylic opacity from (fully transparent) to (fully opaque)
the full path to a background image, e.g.
the background image opacity from (fully transparent) to (fully opaque)

Finally, add to a profile for a retro CRT effect!…

Functionality

wt.exe command line arguments

You can launch your terminal in a specific configuration by using the wt.exe command. Some options you can set are tab and pane arrangements as well as their starting directories and profiles. You can save a custom command as a shortcut and pin it to your taskbar to open your desired configuration.

If you use the wt.exe command inside the command palette, it will take effect in your current terminal window, rather than spinning up a new terminal instance.

This example will open the PowerShell profile in the current working directory in a new tab with a vertical pane running your default profile.

Full documentation about wt command line arguments can be found on our docs site.

Panes

Windows Terminal has pane support for profiles. You can open a new pane of a profile by either holding Alt and clicking on the profile in the dropdown, or by using the following keyboard shortcuts:

Automatic pane split of current profile

Alt+Shift+D

Horizontal pane split of default profile

Alt+Shift+Minus

Vertical pane split of default profile

Alt+Shift+Plus

You can also move focus around your panes by holding Alt and using the arrow keys. Lastly, you can resize your panes by holding Alt+Shift and using the arrow keys. You can find more information about panes on our docs site.

Copy and paste

In Windows Terminal, the default keyboard shortcuts for copy and paste are Ctrl+C and Ctrl+V, respectively. If you do not have a selection, Ctrl+C will act as normal as the break command.

You can customize which keys you’d like to copy and paste with by editing the and key bindings. If you delete these key bindings from your settings.json, the terminal will default to Ctrl+Shift+C and Ctrl+Shift+V. This can be especially helpful for WSL users who need Ctrl+C and Ctrl+V free to use for their shells.

You can also choose which formatting is copied to your clipboard along with newline characters with the and actions associated with the copy command. Full documentation on can be found on our docs site.

Defining key bindings and actions

A large portion of the customizable properties inside Windows Terminal come from key bindings and actions. Commands inside the array will automatically be added to your command palette. If you’d like to also use them with key bindings, you can add to them to invoke them with the keyboard. A full list of every possible command can be found on the Actions page of our docs site.

Send input commands

Windows Terminal gives you the ability to send input to your shell with a key binding. This can be done with the following structure inside your array.

Sending input to the shell with a keyboard shortcut can be useful for commands you run often. One example would be clearing your screen:

Navigating to the parent directory with a key binding may also be helpful.

You can also use this functionality to run builds or test scripts.

WSL starting directory

As of now, Windows Terminal defaults to setting WSL profiles’ starting directory as the Windows user profile folder. To set your WSL profile to start in the ~ folder, you can add the following line to your profile settings, replacing DISTRONAME and USERNAME with the appropriate fields.

Создание новой панели

С помощью клавиатуры

В окне Терминала Windows можно создать новую вертикальную или горизонтальную панель. При разделении по вертикали новая панель откроется справа от выбранной панели, а при разделении по горизонтали — под выбранной панелью. При использовании направленных разделений , , или предоставляются дополнительные возможности размещения новой области. и эквивалентны и , тогда как и позволяют разместить новую область выше и слева от области с фокусом соответственно. Чтобы создать новую вертикальную область профиля по умолчанию, нажмите клавиши ALTSHIFT+. Создать новую горизонтальную область профиля по умолчанию можно с помощью клавиш ALTSHIFT-.

Конфигурация: Raspberry Ubuntu

Если вы хотите изменить эти сочетания клавиш, можно создать новые, используя действие и значения , , , , , или для свойства в файле profiles.json. Метод выберет направление, в котором будут представлены прямоугольные области. Дополнительные сведения о сочетаниях клавиш см. на странице Действия.

Важно!

Параметры , , и для доступны только в .

Использование кнопки «Новая вкладка» и раскрывающегося меню

Если вы хотите открыть новую область профиля по умолчанию, удерживайте клавишу ALT и нажмите кнопку «Создать вкладку». Если вы хотите открыть новую панель с помощью раскрывающегося меню, удерживайте клавишу ALT и щелкните нужный профиль. С помощью обоих этих параметров в активном окне или области в режиме будет создана новая область для выбранного профиля. Режим разбиения выполняет разбиение в направлении, в котором находится самый дальний край окна.

Использование контекстного меню вкладки

Если вы хотите открыть новую область профиля, которая уже открыта в терминале, щелкните вкладку правой кнопкой мыши и выберите команду Split Tab (Разделить вкладку). Область, находящаяся в фокусе, будет продублирована на текущей вкладке.

Options and commands

Below is the full list of supported commands and options for the command line.

Option Description
, , , Displays the help message.
, Launches the terminal maximized.
, Launches the terminal as full screen.
, Launches the terminal in the focus mode. Can be combined with .
, Launches the terminal in a specific window.

command

Command Parameter Description Values
, Creates a new tab based on the profile name assigned. Profile name
, Creates a new tab based on the starting directory path assigned. Directory path
, Creates a new tab based on the command line assigned. Executable with optional commands
, Creates a new tab with the title assigned. Text to use as the tab title
, Creates a new tab with the tab color assigned. Hex color as #RGB or #RRGGBB

Tip

If you change the title of a tab in Windows Terminal and want that title to persist, you must enable the option by setting it to .

command

Command Parameter Description Values
, , Creates a new split window pane either horizontally or vertically. N/A. No additional values to assign.
, Creates a new split window pane based on the assigned command line profile. If this parameter is not assigned, the default profile will be used. Profile name
, Creates a new split window pane based on the assigned starting directory path. If this parameter is not assigned, the default starting directory will be used. Directory path
, Creates a new split window pane with the assigned title. Text to use as the tab title
, Creates a new split window pane with the assigned tab color. Hex color as #RGB or #RRGGBB
, Creates a new split window pane with the assigned size. Float that specifies the portion of the parent pane to use
, Creates a new split window pane based on the assigned command line. Executable with optional commands
, Creates a new split window pane that is a duplicate of the current pane. N/A. No additional values to assign.

command

Command Parameter Description Values
, Focuses on a specific tab according to it’s tab index number. Tab index as an integer

command

Command Parameter Description Values
, Move focus between panes in the given direction. , , , or values accepted.

Note

When opening Windows Terminal from cmd (Command Prompt), if you want to use your custom «cmd» profile settings, you will need to use the command . Otherwise, to run your default profile settings, just use .

Technical Notes

Applications that use the family of APIs to retrieve the active console colors in Win32 format and then attempt to transform them into cross-platform VT sequences (for example, by transforming to ) may interfere with Terminal’s ability to detect what background color the application is attempting to use.

Application developers are encouraged to choose either Windows API functions or VT sequences for adjusting colors and not attempt to mix them.

Keyboard service warning

Starting in Windows Terminal 1.5, the Terminal will display a warning if the «Touch Keyboard and Handwriting Panel Service» is disabled. This service is needed by the operating system to properly route input events to the Terminal application (as well as many other applications on Windows). If you see this warning, you can follow these steps to re-enable the service:

  1. In the run dialog, run

  1. Find the «Touch Keyboard and Handwriting Panel Service»

  1. Open the «Properties» for this service

  1. Change the «startup type» to «Automatic»

  1. Hit «Ok», and restart the PC.

After restarting the machine, the service should auto-start, and the dialog should no longer appear.

Bug Fixes

  • There was an issue that would result in blank profiles or profiles containing just one setting; it is now fixed ()
    • The only known cause of this issue was editing the settings of a profile the first time you ever launch Terminal
    • If you have profiles named in your dropdown, this is probably why.
    • We will now attempt to heal settings files broken by this bug ()
      • If you did

        (Why? That’s just a Command Prompt profile with no useful identifying information in it…)

        have a profile that you actually liked that didn’t have a name or a GUID or any settings, it will now be broken.

  • We’ve fixed a bunch of instances of the terminal losing focus () ()
  • We will no longer close a tab on middle-click down (because up is much more reasonable) () (thanks @Don-Vito!)
  • The «close tabs to the right» and «close other» options have finally returned, thanks to some quick out-of-the-box thinking () (thanks @mpela81!)
  • Nested commands will no longer interfere with deleting the command palette mode character () (thanks @kovdu!)
  • The «new tab» dropdown will no longer go up when it used to go down; we no longer live in topsy turvy-land () (thanks @mpela81!)
  • Terminal will no longer create a new profile with the name «Profile 13» if you’re weird enough to add a new profile called «Profile 13» yourself (as an example) () (thanks @Don-Vito!)
  • The window rename action will no longer also pop keys into the terminal () (thanks @Don-Vito!)
  • You can now navigate better using your key bindings in the Settings UI (focus mode, fullscreen, etc.) ()
  • Terminal will no longer let an application emit more than one bell per second () (thanks @Don-Vito

    In other news, a 1-second delay we accidentally introduced before a bell has been resolved (#10133)

    !)

  • The command palette will now respect your locale when you do a case-insensitive search () (thanks @Don-Vito!)
  • The «discard» button will try harder to keep you looking at the profile you’re on () (thanks @Don-Vito!)
  • Terminal will try to keep the last selected pivot active when you move between profile pages () (thanks @kovdu!)
  • We fixed a bug that resulted in certain CJK punctuation characters being deleted (66b9b9d)
  • Duplicating a tab will now attempt to copy its title, when that title was provided by you, the user () (thanks @Don-Vito!)
  • The «Use parent process working directory» and starting directory settings have learned to stop fighting back ()
  • The various long tooltips in the application will now be wrapped more ~ ~ AESTHETICALLY ~ ~ () (thanks @Don-Vito!)

Подготовка к настройке терминала Windows

Новый Windows Terminal чрезвычайно настраиваемый. Вы можете изменить его внешний вид, включая изменение фона, цвета текста и шрифта. Microsoft также включает предустановленные темы, на которые вы можете переключиться, но вы можете создать свою собственную, используя файл конфигурации JSON.

Вы можете создать пользовательские настройки для каждого из типов терминалов и приложений, которые поддерживает Windows Terminal.

Вы можете редактировать файл JSON с помощью Блокнота, но лучше всего использовать стороннее приложение для Windows под названием Notepad ++, который предлагает лучшее форматирование для файлов JSON, облегчая редактирование. Загрузите и установите Notepad ++ перед началом работы.

С установленным Notepad ++ вам потребуется настроить Windows для открытия файлов JSON с его помощью.

Перейдите в папку настроек терминала Windows по умолчанию. Откройте проводник Windows, затем введите% LOCALAPPDATA% Packages Microsoft.WindowsTerminal_8wekyb3d8bbwe LocalState. В папке должен быть файл profiles.json. Щелкните правой кнопкой мыши файл, затем нажмите «Открыть с помощью».

В меню выбора приложений нажмите «Другие приложения», затем нажмите «Найти другое приложение на этом ПК».

В диалоговом окне выбора приложения перейдите к месту установки по умолчанию для Notepad ++. Для большинства пользователей это можно найти в C: Program Files (x86) Notepad ++. Выберите «Блокнот ++. Exe», затем нажмите «Открыть».

После этого файл конфигурации profiles.json всегда будет открываться в Notepad ++. Вы можете начать настраивать свой Windows Terminal здесь.

Best Terminal Emulators for Windows 10

1. Windows Terminal

The first application in our list is a windows terminal that is a Microsoft app that will help you to perform windows command line, PowerShell and windows bash script functions in one place with an awesome GUI interface.

Currently, if you are doing some work on the command prompt and you want to run PowerShell command then you need to switch the client but with the window terminal, you don’t need to switch.

This tool is not coming inbuilt in your OS, To use this application you need to download it from the Microsoft store.

To open the Microsoft store, just search for the “Microsoft store” in the start menu and search for the “windows terminal” and click on the Get it option and install it.

After app installation, click on the Three dot icon close to the Launch option and select the “Pin to Start” option to pin it in your start menu.

now launch the application, the first default tab will open in the PowerShell window.

Click on the down arrow close to the new tab, you are able to access windows PowerShell, Command Prompt, and Azure Cloud Shell here.

Windows Terminal: the secret to command line happiness!

Watch this video on YouTube

2. Zoc terminal

The emulator to access data on unix accounts via windows 10, zoc terminal is the best one among others, it is not free and costs around $79.99, it is a great value for money for advanced users.

One of its key features is tabs so we can have several terminal sessions at once across ssh, telnet, qnx, and other terminals.

It’s brimming with commands and is highly customizable to suit our personal terminal style.

Its emulations are faster and complete, also having features like mouse and keyboard support, print-through and line graphics. And we can also search for specific bits of text in our work, then highlight them.

3. Cmder

Cmder is a portable terminal emulator for Windows 10 that was built from the lack of a good alternative in windows. It’s based on top of another console emulator, conemu, and enhanced with a clink. Clink increases the power of conemu shell features like bash-style.

It’s highly compatible with msysgit, powershell, cygwin and mintty, bringing unix capabilities to windows.

It is portable, we can run cmder via any usb drive without installing it on any local hard drives. As a bonus, it ships with monokai color scheme to coordinate our hacking with sublime text.

Cmder: A Better Windows Command Line

Watch this video on YouTube

4. Conemu

Conemu is a windows console emulator with tabs, multiple windows and a varies of customization options.

Conemu was created as a companion to far manager, a file manager released for windows in 1996. But the software is continuously developed.

This emulator has a deep menu of settings to tweak and hotkeys to assign. Conemu incompatible with many of the same popular shells as cmder, like cmd.exe, powershell, cygwin, putty and others.

If we install a dos emulator like dosbox, we can run dos applications in a 64-bit. Because conemu isn’t a shell, it doesn’t include helpful shell features like remote connections and tab.

Watch this video on YouTube

5.Console

Console is one of the emulator and enhancement for windows 10 which focuses on easier use. It gives us full capabilities, and its neat design hides a degree of power and customization.

It integrates all the major shells and we can also customize window styles, transparency level, fonts and font colors. Console is not as good as conemu, but advanced users might find this emulator limited by the software.

6. Babun

Babun comes with bash and zsh out of the box, having tools that both beginner and advanced users can use. It’s based on top of cygwin, porting a unix-style interface to windows 10.

We can use zsh to configure zsh’s variety of options, which gives us control over shell’s functionality that applications is having.

It includes the pact package manager and http proxying out the box which is really an important thing.

7. Mintty

This is cygwin for our windows shell, mintty is a great console emulator. Mintty is installed as the default terminal emulator.

Mintty gives a collection of added features like drag & drop, full-screen display, copy & paste and also gives us theme support. Mintty also works with other systems like msys and msys2.

Conclusion

Cmder is the best terminal emulator for users who are looking for a capable and manageable terminal emulator. Users who are seeking a more powerful experience can go for cmdemu or a bit more for zoc terminal.

Отключение сеанса и вход пользователя

Отключение сеанса

Если пользователь решит отключить сеанс, процессы и все пространство виртуальной памяти останутся и будут оторваны на физический диск, если для других процессов требуется физическая память. Так как сервер терминала сохраняет сопоставление домена или имени пользователя и связанного с ним SessionID, при повторном подключении одного и того же пользователя существующий сеанс будет загружен и снова доступен. Дополнительным преимуществом RDP является возможность изменения разрешений экрана сеанса в зависимости от запросов пользователя для сеанса. Например, предположим, что пользователь ранее подключился к сеансу терминала Server с разрешением 800 x 600 и отключил его. Если пользователь переехав на другой компьютер с разрешением 640 x 480 и подключив его к существующему сеансу, рабочий стол будет повторно отозван для поддержки нового разрешения.

Set your WSL distribution to start in the home ~ directory when launched

By default, the of a profile is (). This is a Windows path. For WSL, however, you may want to use the WSL home path instead. only accepts a Windows-style path, so setting it to start within a WSL distribution requires a prefix.

Beginning in Windows 10 version 1903, the file systems of WSL distributions can be addressed using the prefix. For any WSL distribution with the name , use as a Windows path that points to the root of that distribution’s file system.

For example, the following setting will launch the «Ubuntu-18.04» distribution in its home file path:

Important

On newer versions of Windows, can accept Linux-style paths.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *