Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to learn some ksh details, but i don't want to change from bash to ksh permanently.

What should i do?

Is it possible to change shell only for a specific console session?

share|improve this question

If you don't already have ksh installed, enter sudo apt-get install ksh in the terminal. After installation you can enter a ksh session by entering ksh in the terminal. When you are finished with ksh just type exit.

share|improve this answer

After installing ksh, you can also use the command exec ksh to replace your existing shell. Then, when you exit ksh that console is closed.

Not as important now, but used to be terribly important when we had 150 users all sharing the same limited machine.

exec ksh at the end of your .bashrc should do it -- but then it would affect every every interactive shell.

share|improve this answer

sudo apt-get install ksh then start ksh simply by typing ksh in a terminal window. Exit when you are done to return to your default shell.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.