Mutiple Linux shells on a same system
PC: Opensource.com (cmatrix)

Mutiple Linux shells on a same system

Recently I came across the question is there any possibility that multiple shells can be installed on the same system and can be used interactively???

Being a #linux user I quickly answered yes!!! why not.

Question raised how?

So, here's my answer in 3 Easy steps...


1 - Simply install the shell you want to use.

2 - Change the shell.

3 - Start Using the Shell.

Simple, isn't it?

So now let's have a look

First of all you need to have a Linux system with a internet. First thing first... just for you information for most of Linux distribution Bash or Sh is a default shell. But that doesn't means that you cannot change or install default shell... Why? remember from your first Linux class Linux is OpenSource and provides the capability to customize as much as you want unless there's a Code or technology limitation and by saying that I literally mean it... As In Linux since everything is considered as a file so unless there's a binary or you know(aware) pretty much about what you're doing Linux is a very powerful tool you can have in your toolbox.

Installation:

Enough now, First for all the major shells i.e.

  • zsh
  • ksh
  • fish

Now, to install you can simply type

$ sudo apt install zsh ksh fish -y        

for Debian or Ubuntu based distro and for Fedora based distribution type

$ sudo dnf -y install zsh ksh fish        

Now, wait for few seconds or minutes depending on your system configuration it will install all the shells i.e. ksh, zsh and fish

Each shell has it's own features try them all but don't stay on one

Changing the shell:

So, as we know that our shells are installed now, in order to use shell, there are two methods...

  1. Open terminal and type the name of shell as a command it will open the shell inside the BASH shell i.e. ksh, zsh, fish
  2. Change the whole shell simply by typing

$ chsh -s $(which zsh)

$ chsh -s $(which ksh)

$ chsh -s $(which fish)        

You can use any of the commands mentioned as per your mood for the shell you want to try

If you're opting for the second option then after changing the shell you need to logout and then login again in order to use the new shell.

In some distribution, you may not have to logout even simply closing a terminal window and opening again might do the work for you.


Note:

For the above command don't use sudo otherwise instead of user the shell will be changed for root user. use the command only for the user you want to change the shell.

So that's It for now I will be back soon with another writeup

Till then if you want check out my other's blogs too


Thanks

- SK -


To view or add a comment, sign in

More articles by SAKSHAM TRIVEDI

  • DNF5... It's time to rethink the package management.

    Hello Folks, It's been a while since I have written any article. Well here I am now.

  • File BackuP & Sync...

    Introduction In today's fast-paced world, seamless file sharing and synchronization are essential for efficient…

  • Simplifying SSH Connection: A Guide To Build Your Own Proxy Network

    Establishing a secure SSH connection between Machine A and Machine F can be challenging, especially when intermediate…

  • Unleashing the Power of Linux: A Browser-Based Linux Experience

    To access Fedora Linux's graphical system in a browser using Apache Guacamole, you will need to set up Guacamole on a…

  • Gmail from Old Dog Terminal

    Mutt is used to send and receive email from your terminal, even if you're using hosted service such as Gmail. A…

  • Let's WhatsApp using Bash

    S: AuthorAuthorIntroduction In today's fast-paced world, automation plays a crucial role in streamlining various tasks.…

    6 Comments
  • Ping... a message arrrived

    In this short tutorial, Here I am going to demonstrate chatting using ping command. For this first of all you need a…

    1 Comment
  • Containerized SSH Server

    In this article I am going to demonstrate how to containerize SSH server so without any further explanation let's…

  • Jupyter Lab as a container

    This article is focused on containerizing Jupyter Notebook inside the docker container with a fully-fledged develop…

  • Launching graphical application inside the docker container

    Hello guys, In this article I am going to discuss how to launch the graphical application inside the docker. So, for…

Insights from the community

Others also viewed

Explore topics