Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-14-2006, 02:06 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 19

Rep: Reputation: 0
How to change shell to ksh

How to change the default shell from bash to ksh.

Thanks in adavnce.
Old 08-14-2006, 02:17 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
man chsh
dont know what distribution your working with.
or you could try changing the shell in /etc/passwd
anyhow you need ksh installed first.
Old 08-14-2006, 02:26 PM   #3
LQ Newbie
Registered: Aug 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0

The manual way:
  1. Make sure you've got ksh installed on your system. If not, get it from here.
  2. As root, open up /etc/passwd in any text editor.
  3. Change /bin/bash to /bin/ksh in the line describing the account you are using.
Or just use chsh, pretty simple :)


Last edited by a.malich; 08-14-2006 at 02:29 PM.
Old 08-14-2006, 03:01 PM   #4
LQ Newbie
Registered: Aug 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you for your help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KSH and SCO Shell Scripting mpgram Programming 3 12-29-2005 01:24 PM
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 06:09 AM
live cd with ksh default shell??? tgi Linux - Newbie 2 06-14-2005 11:47 PM
How to install Ksh shell hardeep_ubhi Linux - Newbie 1 02-03-2005 08:55 AM
Shell Script that misbehaves under Linux but works in HP UX well... ksh environ. sammathew Linux - Software 7 09-17-2003 09:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration