Home > Software design >  Why does the terminal display in my vscode look different?
Why does the terminal display in my vscode look different?

Time:09-10

So I initially used windows, but recently decided to switch to linux. In windows, my vscode terminal look like this: enter image description here

It shows which directory I am in. But when i try vscode in linux, i get this on run:

enter image description here

It shows nothing but sh-5.1, which i don't know what is it. And when i run a simple c program: enter image description here

the output is on the same line as the sh-5.1. How to change the terminal to look like in windows? (not exactly the same, I mean at least show the directory and generate a newline when done running program)

CodePudding user response:

You can simply write:

bash

to your console since bash shell is the closest one to what you want. Your current shell is sh. To switch back to sh, you can write sh again. To see other available shells in your computer, you can write: cat /etc/shells

If you don't have bash installed on your computer (which is pretty unlikely), you can install it by:

sudo apt-get install bash
  • Related