1) When I am using up and down arrow key, I can not navigate to previous and next commands. How can I navigate commands in ksh ? Someone told me that I need to have bash shell installed ? Can I have bash shell installed on ksh ? OR can I have both ksh and bash shell installed ? How can I switch between shells , if I have more than 1 shells installed ?
That functionality is available in newer versions (takes some tweaking though) of ksh (i.e. ksh93). If you're more comfortable using that functionality then switch to bash. Both shells are usually available on the average Linux system.
If you want to see what shell you're currently using run this command:
ps -p $$ | awk 'END{print $NF}'
If you want to switch between shells, use the chsh command (if available):
chsh -s $(which <shell name here>)
Afterwards you would need to logout and log back in to enable the new shell.
2) I was running some command and it stopped giving me command line. Whatever key I press, it will literally be typed on line. Q, Esc, ctrl+q nothing would work to abort. If I want to abort some command OR quit a command, how can I do that ?
I didn't see CTRL-C listed. If that doesn't work, try CTRL-Z to pause\stop the process (should return you to the shell). Then run jobs -l to list it and then feed the PID to the kill command.
3) Why are there so many shells in Linux environment ? Is there an advantage of using one over the other ? Whats the advantage of using ksh over bash shell ?
Nothing wrong with a wide selection. Everyone has different needs and/or uses and most shells are very unique unto themselves. I personally like both, but bash has the advantage of being easier, especially for those new to Unix\Linux.
4) Are thgere any updates coming to these shells like ones for browsers and OS ? If yes, how can we find that out ?
Google the shells and visit their websites. They should list their software release cycle.
Ok, my lunch break is over. Hope I answered your questions.