The majority of Linux based hosting servers generally use the BASH shell, or Bourne Again Shell. As such this is what we base most of our Linux server tutorials on. However other Linux shell’s exist, and it’s a good idea to make sure you know what Linux shell you’re using when you first login to a server. Luckily – getting this information is pretty simple.
Login to your server via your favorite client – like PuTTY, and use the following command:
echo $SHELL
And you should get back something like this:
You can also use $0 to get back the same result:
If you’re looking for more details about the top 5 Linux shells – I recommend you check out this article by Aaron Kili over on TecMint.