Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
I am facing a problem related to the shell change, when I change the shell from bash to csh and type the comand
echo $SHELL, I expect the shell to print:
But instead it prints:
What is the reason for that? How do I print the path to the currently running shell instead?
35.1k1313 gold badges100100 silver badges150150 bronze badges
asked Apr 17, 2016 at 18:40
To view your current shell use:
$SHELL prints the default shell.
35.5k5454 gold badges9090 silver badges143143 bronze badges
answered Apr 17, 2016 at 19:08
Sergiy KolodyazhnyySergiy Kolodyazhnyy
102k1919 gold badges270270 silver badges479479 bronze badges
echo $SHELLreturns your default shell.