I recently installed Ubuntu for Windows and now inside the Start Menu there are 2 new items:
Bash Bash This terminal opens in:
root@myName-PC:/mnt/c/Windows/System32#
Ubuntu Ubuntu This terminal opens in:
root@myname-PC:~#
What is the difference between the two?
For example, we want to install Git and Utils, RVM (Ruby) then clone a Git project and deploy via SSH with Capistrano commands. Should that be run with Bash or Ubuntu as above?
Also, should the commands be run in system32 or C:/ folder when inside the terminal?
Thanks
Bash is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
Start Bash in Windows 10You can use the built-in Command Prompt, PowerShell, or Bourn shell itself. Let's look at all three. Click Start, All Apps, under the letter B click Bash on Ubuntu for Windows. Press Windows key + X then click Command prompt, at the command prompt, type: bash then hit Enter.
The terminal is the GUI window that you see on the screen. It takes commands and shows output. The shell is the software that interprets and executes the various commands that we type in the terminal. Bash is a particular shell.
From the Ubuntu distribution's page, Click the 'Get' button. Now, Ubuntu distribution will be downloaded and installed automatically on your computer. Once the installation finished, click the 'Launch' button to launch the terminal. You can also launch the app from the Windows Start Menu.
The Bash terminal is the old style (prior to Windows 10 v1790 a.k.a. Fall Creator Update). It resides in %LocalAppData%\Lxss
and is managed using lxrun.exe
.
The Ubuntu terminal is the new style, downloaded from Microsoft Store. The launcher part is a Windows App (%ProgramFiles%\WindowsApp
) and its data resides in %LocalAppData%\Packages
.
Those are two isolated installation of Windows Subsystem for Linux and do not interfere with each other. Practically you need only one of them, so choose one at your own preference.
I personally dislike the Windows Store version as it can be easily removed, which isn't a good thing for a productivity environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With