Monday, April 15, 2024
713
rated 0 times [  713] [ 0]  / answers: 1 / hits: 755305  / 3 Years ago, mon, may 17, 2021, 8:14:37

I read that terminal is nothing but shell, and Unix provides different flavors of shells:




  • Bourne shell (sh)

  • C shell (csh)

  • TC shell (tcsh)

  • Korn shell (ksh)

  • Bourne Again shell (bash)



Questions:




  • When I open a terminal window, which shell is opened by default?

  • How do I check how many shells are installed?

  • How do I change the shell used from my account?


More From » command-line

 Answers
7

You can type the following command in your terminal to see which shell you are using:



echo $0


The result will look something similar to the below if you are using the bash (Bourne Again Shell) terminal:



-bash

[#21134] Monday, May 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fieldcheon

Total Points: 24
Total Questions: 105
Total Answers: 109

Location: Western Sahara
Member since Tue, Feb 16, 2021
3 Years ago
fieldcheon questions
Fri, Apr 1, 22, 05:58, 2 Years ago
Wed, Feb 2, 22, 03:31, 2 Years ago
Sat, Aug 14, 21, 01:24, 3 Years ago
;