Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Bash and Ubuntu terminals on Windows 10

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

like image 970
Freelensia Avatar asked Jan 13 '18 01:01

Freelensia


People also ask

Is Bash and Ubuntu the same?

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.

Can we use Bash terminal in Windows 10?

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.

Is Bash and terminal the same thing?

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.

Can I use Ubuntu terminal in Windows 10?

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.


1 Answers

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.

like image 59
iBug Avatar answered Sep 21 '22 13:09

iBug