Add or Remove Open Linux shell here context menu in Windows 10  

    Add or Remove Open Linux shell here context menu in Windows 10

    Add or Remove Open Linux shell here context menu in Windows 10

    How to Add or Remove Open Linux shell here context menu in Windows 10
    Published by Category: Customization
    21 Feb 2019
    Designer Media Ltd

    How to Add or Remove "Open Linux shell here" context menu in Windows 10


    The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditional Windows desktop and modern store apps.

    This is primarily a tool for developers -- especially web developers and those who work on or with open source projects. This allows those who want/need to use Bash, common Linux tools (sed, awk, etc.) and many Linux-first tools (Ruby, Python, etc.) to use their toolchain on Windows.

    WSL provides an application called Bash.exe that, when started, opens a Windows console running the Bash shell. Using Bash, you can run command-line Linux tools and apps.

    Bash is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in macOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.

    Starting in Windows 10 build 17672, a new Open Linux shell here context menu is available when you have Windows Subsystem for Linux (WSL) enabled and installed a Linux distro app.

    By default, the Open Linux shell here context menu is only available when you press and hold the Shift key and right click or press and hold on a folder or drive.

    The Open Linux shell here context menu will open the current default WSL distro.

    For more details about Windows Subsystem for Linux (WSL) and Bash on Ubuntu, see:

    This tutorial will show you how to add or remove the Open Linux shell here context menu for all users when Windows Subsystem for Linux (WSL) is enabled in Windows 10.

    You must be signed in as an administrator to add or remove the "Open Linux shell here" context menu.


    EXAMPLE: "Open Linux shell here" context menu
    Add or Remove Open Linux shell here context menu in Windows 10-open_linux_shell_here.png
    Add or Remove Open Linux shell here context menu in Windows 10-open_linux_shell_here_command_prompt.png



    Here's How:

    1. Press the Win+R keys to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

    If you have already changed the owner and set permissions for the registry keys in step 2, step 3, and step 4 below, then you can skip ahead to step 6 below instead.

    2. Navigate to the key below in the left pane of Registry Editor, and: (see screenshots below step 4)

    HKEY_CLASSES_ROOT\Directory\Background\shell\WSL

    A) If you have not already, you will need to change the owner of the WSL key in the left pane to be the Administrators group. Be sure to check both Replace owner of subcontainers and objects and Replace all child object permission entries with inheritable permission entries from this object.

    B) Click/tap on Yes to confirm.

    C) If you have not already, you will need to set permissions of the WSL key in the left pane to "Allow" the Administrators group "Full control".

    3. Navigate to the key below in the left pane of Registry Editor, and: (see screenshots below step 4)

    HKEY_CLASSES_ROOT\Directory\shell\WSL

    A) If you have not already, you will need to change the owner of the WSL key in the left pane to be the Administrators group. Be sure to check both Replace owner of subcontainers and objects and Replace all child object permission entries with inheritable permission entries from this object.

    B) Click/tap on Yes to confirm.

    C) If you have not already, you will need to set permissions of the WSL key in the left pane to "Allow" the Administrators group "Full control".

    4. Navigate to the key below in the left pane of Registry Editor, and: (see screenshots below)

    HKEY_CLASSES_ROOT\Drive\shell\WSL

    A) If you have not already, you will need to change the owner of the WSL key in the left pane to be the Administrators group. Be sure to check both Replace owner of subcontainers and objects and Replace all child object permission entries with inheritable permission entries from this object.

    B) Click/tap on Yes to confirm.

    C) If you have not already, you will need to set permissions of the WSL key in the left pane to "Allow" the Administrators group "Full control".

    Add or Remove Open Linux shell here context menu in Windows 10-advanced_security-1.png Add or Remove Open Linux shell here context menu in Windows 10-advanced_security-2.jpg
    Add or Remove Open Linux shell here context menu in Windows 10-advanced_security-3.png Add or Remove Open Linux shell here context menu in Windows 10-advanced_security-4.png

    5. When finished, you can close Registry Editor.

    6. Do step 7 (add-right click), step 8 (add-Shift+right click) , or step 9 (remove) below for what you would like to do.


     7. To Add Right Click "Open Linux shell here" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 10 below.

    Add_Open_Linux_shell_here_context_menu.reg

    Download


     8. To Add Shift + Right Click "Open Linux shell here" Context Menu

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 10 below.

    Add_Shift+Open_Linux_shell_here_context_menu.reg

    Download


     9. To Remove "Open Linux shell here" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 10 below.

    Remove_Open_Linux_shell_here_context_menu.reg

    Download

    10. Save the .reg file to your desktop.

    11. Double click/tap on the downloaded .reg file to merge it.

    12. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    13. You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn






  1. Posts : 22
    Microsoft Windows 10 Pro 64-bit 16299 Multiprocessor Free
       #1

    Not working for me. Shell appears but instantly closes afterwards.
      My Computer


  2. Posts : 26,439
    Windows 11 Pro 22631.3447
       #2

    gezginrocker said:
    Not working for me. Shell appears but instantly closes afterwards.
    tarting in Windows 10 build 17672, a new Open Linux shell here context menu is available when you have Windows Subsystem for Linux (WSL) enabled and installed a Linux distro app.

    You are running 16299. this maybe the problem.
      My Computer


  3. Posts : 8
    win11
       #3

    can't remove this context menu at windows 11 22000.282
      My Computer


 

Tutorial Categories

Add or Remove Open Linux shell here context menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:09.
Find Us




Windows 10 Forums