PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, October 6, 2022

[FIXED] Why does the terminal display in my vscode look different?

 October 06, 2022     terminal, visual-studio-code     No comments   

Issue

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)


Solution

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


Answered By - meta6483
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing