Command Prompt / Console / Bash on Ubuntu on Windows

Shrouded in the mists of time, the Windows Console was created. For millenia, geeks and developers wrought their command-line tools but after a while, a great lacking was noticed. And so, legions of ever intrepid command-line mavens migrated to other shells and consoles, ’til but a stalwart few remained.

In Windows 10, with a deep rumbling, the ancient, weary, Windows Console heaved a great sigh and began to tremble. New features appeared, but slow was the (aparrent) progress.

But then, in early 2016, from under a rock evolved a group of new console dev’s. And then a PM. The journey to modernity had begun … again! WE’RE BACK! AGAIN!

Please post your asks, ideas, wants and needs below: We ARE listening, and we ARE grateful for your feedback!

@RichTurn_ms, Paul, Mike1 & Mike2.

$ | >

(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. mount NFS / sshfs / SAMBA / SMB "network drives"

    After general mount support is added, allowing "network drive" mounts through the mount command and the /net automounter would make it straightforward to integrate a Windows dev machine into a mainly *nix network.

    534 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      50 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
    • Need serial-USB/COM-port access

      Please add access to serial port devices (/dev/ttyUSB#, etc.)
      It might not be glamorous, but for interfacing with IoT projects, serial terminals, and other ancient hardware it is very, very useful.

      Thank you!

      217 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        21 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
      • Add USB Device Support

        This ask is specifically for adding USB Device support to WSL - i.e. exposing USB busses and devices to the OS.

        This is NOT an ask for adding the ability to communicate with external USB peripherals like phones, IoT boards, etc. - those asks are elsewhere:

        USB Serial communicatons:
        https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/15424383-need-serial-usb-com-port-access

        Mount USB storage devices:
        https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13717092-mount-usb-sd-removable-storage-devices

        1,025 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          100 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
        • df (and maybe other tools) not working because of missing /etc/mtab

          As described here: https://github.com/Microsoft/BashOnWindows/issues/150
          In Ubuntu /etc/mtab is created by init scripts that do not run in lxss.
          The best thing to do is to symlink it to /proc/mounts (like in other distributions).

          This file is needed for df (and maybe others) to work.

          33 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            3 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
          • Add support for restartable system calls (i.e. SA_RESTART flag).

            https://github.com/Microsoft/BashOnWindows/issues/349

            Currently lack of support for restartable system calls (i.e. SA_RESTART flag) is preventing from golang from compiling in bash on windows.

            89 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              9 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
            • Add support for semaphores and shared memory

              Many linux programs need support for semaphores and shared memory.

              For example:
              - java virtual machine jdk
              - mono
              - node js
              etc.

              All of them are needed for web development.

              197 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                6 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
              • 'rvm install ruby' command fails

                I'm trying to configure a rails development environment with rvm (ruby version manager). When I try to install ruby (typing 'rvm install ruby') it fails with errors

                foo@bar:~$ rvm install ruby
                ruby-2.3.0 - #removing src/ruby-2.3.0..
                Searching for binary rubies, this might take some time.
                Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2
                Checking requirements for ubuntu.
                Requirements installation successful.
                df: Warning: cannot read table of mounted file systems: No such file or directory
                ruby-2.3.0 - #configure
                ruby-2.3.0 - #download
                ruby-2.3.0 - #validate archive
                cat: /dev/fd/63: No such file or directory
                cat: /dev/fd/63: No such file or directory
                The downloaded package for https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2,
                Does…

                4 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Add a way to copy to Windows clipboard from the LXSS shell

                  So that we can pipe to the clipboard or have y command in Vim compiled with +clipboard send things to the system clipboard.

                  99 votes
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    3 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                  • Mount USB / SD removable storage devices

                    For example:

                    The micro sd card on my Surface Pro 4 is not mounting when I open bash. It is my d:\ drive in windows. C:\ mounts just fine. I have not even been able to manually mount it. Any thoughts?

                    393 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      25 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                    • Mount drives other than C:

                      Bash on Windows will automatically mount drive C: under /mnt/c. But other drives (D:, E:, etc.) remain inaccessible to bash. Those drives may be hard drives, SSDs, DVD drives, USB thumb drives, or network mapped drives. For bash to be usable as a development environment these other drives need to be accessible. It would be ideal if they were mounted dynamically without any additional action required by the user. For example, if the user types the following:

                      net.exe use * \\remote_machine\c$

                      Then whatever drive gets assigned (ie. Z:) should be automatically mounted in bash (ie. under /mnt/z).

                      3 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                      • Emulate POSIX-compliant filesystem permissions

                        Windows Subsystem for Linux (WSL) must support traditional Unix permissions for mounted Windows drives in /mnt/*.

                        Many utilities won't work otherwise.

                        Dotfiles often contain private data and apps check for chmod 600, ignoring the file otherwise.
                        Incorrect permissions are source of many bugs. Without proper emulation, developers won't be able to discover/fix them before deploying on a real Linux system.
                        Developers should be able to set executable flags, particularly for Git repos.
                        0777 perms on everything is a security risk.

                        69 votes
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          8 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →

                          [Note: We have made some improvements to file permission handling which have been available for several months now in Win10 Insider builds, and which will roll out broadly when Windows 10 Creators Update ships in a few weeks’ time]

                          WSL does honor & support Linux filesystem permissions on files stored in the Linux side of the filesystem.

                          Files that are stored in the Windows filesystem also reflect the permissions of the local Windows user: If a file’s Windows permissions grant the locally logged-in user read-only permissions, a file only reports read-only rights:

                          ~$ ll /mnt/c/dev/WindowsOnly.txt
                          r-r—r— 1 root root 13 Mar 7 16:10 /mnt/c/dev/WindowsOnly.txt

                          Trying to write to this file results in an error:

                          ~$ echo FAIL! > /mnt/c/dev/WindowsOnly.txt
                          bash: /mnt/c/dev/WindowsOnly.txt: Permission denied

                          Note: Windows filesystem permissions always supersede *NIX file permissions – if a user does not have the rights to read/write/execute a file, then they won’t…

                        • Enable network connection enumeration

                          ifconfig, ip, etc. doesn't currently work and /proc/net/dev doesn't exist in Bash on Windows 10 Anniversary Update or Insider builds.

                          This issue is being tracked in GitHub and a fix is being investigated: https://github.com/Microsoft/BashOnWindows/issues/908

                          Example scenario:
                          Running a hyper-v virtual machine win10pro with bash, network issues

                          user@WIN10PRO64-02:/$ sudo /sbin/ifconfig
                          Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

                          /etc/resolve.conf has a dns server configured correctly.

                          Network does work and apt-get works,
                          but no 'ifconfig' and programs cannot call out to 'eth0'

                          Ubuntu is up to date as of this post.
                          apt-get update & apt-get upgrade both work

                          How…

                          1,381 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            131 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                          • Bash-style autocomplete

                            Could you consider changing the autocomplete behavior to bash-like? I mean displaying all possible options (like folders after typing "cd") instead of cycling through all possible values?

                            629 votes
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              9 comments  ·  Flag idea as inappropriate…  ·  Admin →

                              PSReadLine (https://github.com/lzybkr/PSReadLine) is a replacement command processor that can be installed on PowerShell v3 and up, and is the default PowerShell command processor for PowerShell v5 in Windows 10 Anniversary Update.

                              PSReadLine can be configured to expand completion options using this command (which you can set in your $Profile if you wish):

                              Set-PSReadlineKeyHandler -Key Tab -Function Complete

                              I encourage you to explore and enjoy the amazing new features in PSReadLine.

                            • 9 votes
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                1 comment  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                              • The Glorious Glasgow Haskell Compilation System, also known as GHC, does not work.

                                apt-get install ghc fails here:

                                Setting up ghc (7.6.3-10) ...
                                ghc: timer_create: Invalid argument
                                update-alternatives: using /usr/bin/ghc to provide /usr/bin/haskell-compiler (haskell-compiler) in auto mode
                                ghc-pkg: timer_create: Invalid argument
                                dpkg: error processing package ghc (--configure):
                                subprocess installed post-installation script returned error exit status 1
                                Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
                                dmesg: klogctl failed: Invalid argument
                                /bin/df: cannot read table of mounted file systems: No such file or directory
                                Errors were encountered while processing:
                                ghc
                                E: Sub-process /usr/bin/dpkg returned an error code (1)

                                530 votes
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  20 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                • Transparent Linux Compatibility Layer

                                  This is waaaaay more than a "feature", so if you say "no" I totally understand why :)

                                  So here's the thing: there are two things I want in my computing environment as a developer: (a) a pretty and usable interface, and (b) a *nix compatibility layer.

                                  I build software that often (if not always) deploys on Linux in the cloud. That's my job and background. Because I need (a) and (b) above, right now I primarily use Mac OS X as my computing environment. (Linux hardware support/drivers and UX just isn't quite there yet so I don't use a Linux…

                                  1 vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    1 comment  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Support for filesystem watchers like inotify

                                    Currently there is no support for filesystem watchers like inotify.
                                    Because of this tools like bitbake don't work.

                                    933 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      52 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                    • no network

                                      I installed Bash on Ubuntu on Windows . It seems my network is not avaliable . "apt-get update" command cannot work,then I found bash cannot use my windows 10 network . "ifconfig" command showed this messages: cannot open /proc/net/dev(No such file or directory). Limited output "
                                      I don't know how to fix this problem . Can anyone help me?

                                      16 votes
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        6 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Apache Server doesn't work.

                                        Enable Apache2 Web server to run and for services to remain running after Bash is closed.

                                        3 votes
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          2 comments  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Routing and /proc/net/route

                                          Enabling network configuration was really a great job. Next part is to provide /proc/net/route

                                          That would be great, thanks !

                                          2 votes
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            1 comment  ·  Bash/WSL  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 6
                                          • Don't see your idea?

                                          Command Prompt / Console / Bash on Ubuntu on Windows

                                          Feedback and Knowledge Base