Bash Vs Cmd Vs VSCode Terminal

GIT Bash vs CMD vs Terminal Window of VSCode

  • CMD is a command line interface developed by Microsoft. Microsoft’s original DOS operating system. It is still contained in windows when you open a Command window. (or cmd)
  • GIT Bash, is really “Bash” that was installed at the same time Git was installed. This is a command line interface console developed in the unit/linux universe.
  • VS Code Terminal Window – is a command line interface built into VS Code.

Ideally, all three perform the same function, that is they execute DOS commands from a Dos Interface.

What makes the CMD interface great, is

  • that it’s been around for awhile, and everyone knows how to use it.

What makes VS Code Terminal Window great is…

  • It is built into VS Code. Developing in the Angular environment seems to force upon the users to use many different programs to navigate so having a terminal window tucked away into the editor isn’t such a bad thing.
  • Development in the angular environment kind of forces you two work in two Dos interfaces at the same time. (one to run NG Serve, the other to generate code), VS Code allows you to instantiate multiple windows using a function on the terminal toolbar.

What makes (git) Bash great is …

  • It has a larger row buffer so you can scroll up more lines than you could with CMD.
  • It comes from a unix mindset – which was developed by programmers, for programmers. They have a scripting technology (batch file language) which is likely better than the CMD language.
  • The Git version of Bash has a custom prompt that shows you things like the current folder you are in, and the current branch that you are working on within GIT. This is important at my office because it appears that we will be switching between branches frequently and it is easy to get confused.

Notice:

  • When you navigate into a folder covered by GIT, you will see the branch currently working on
  • Notice the output of dir vs ls. LS is the unix command for a directory. Dir is the dos command. Bash supports the dos commands, but apparently they are second class citizens ;^)