Skip to main content

Windows Terminal: Notes

Windows Terminal 1.0

Windows Terminal is a modern terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and Windows Subsystem for Linux (WSL).

Keep updating

May 20th, 2020: Version 1.0

CTRL + SHIFT + C : Copy

ALT + SHIFT + - : Split screen horizontally
ALT + SHIFT + + : Split screen vertically
ALT + SHIFT + D : Split screen vertically (too)

CTRL + rotate mouse wheel : Zoom in/out text

Change default profile

Modify defaultProfile in settings.json file

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "alwaysShowTabs" : true,
    // "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // Powershell
    "defaultProfile" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}", // Powwershell Core
    ...

Set starting directory

        {
            "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
            "hidden": false,
            "name": "kali-linux",
            "source": "Windows.Terminal.Wsl",
            "startingDirectory": "\\\\wsl$\\kali-linux\\root"
        },

Set Color Tab

        {
            "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
            "hidden": false,
            "name": "kali-linux",
            "source": "Windows.Terminal.Wsl",
            "startingDirectory": "\\\\wsl$\\kali-linux\\root"
            "tabColor": "#158FAD"
        },

Backup Windows Terminal settings

Location of Windows Terminal settings.json file:

Powershell: $ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

CMD: %userprofile%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

>>> Backing Up Windows Terminal Settings with PowerShell | The Lonely Administrator

Install Cascadia Code

Download and install Cascadia Code font at https://github.com/microsoft/cascadia-code/releases

Resources

Windows Terminal | Microsoft Docs

Popular posts from this blog

Linux command: lastlog

lastlog command reports the most recent login of all users or of a given user. NAME lastlog - reports the most recent login of all users or of a given user SYNOPSIS lastlog [options] DESCRIPTION lastlog formats and prints the contents of the last login log /var/log/lastlog file. The login-name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in /etc/passwd. OPTIONS The options which apply to the lastlog command are: -b, --before DAYS Print only lastlog records older than DAYS. -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -t, --time DAYS Print the lastlog records more recent than DAYS. -u, --user LOGIN|RANGE Print the ...

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...