Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.