LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Installing Korn Shell in Fedora (https://www.linuxquestions.org/questions/fedora-35/installing-korn-shell-in-fedora-537211/)

bostonantifan 03-13-2007 06:01 PM

Installing Korn Shell in Fedora
 
Can anyone tell me where I can download a korn shell package to install in Fedora 6? Since I'm a newbie to Linux, any installation instructions, advice, tips, etc. would also be GREATLY appreciated.
Peter V.

homey 03-13-2007 06:15 PM

ksh - The Original ATT Korn Shell

I would just use the package manager called yum to install it.
Code:

as root user ( su - )
yum install ksh


bostonantifan 03-13-2007 06:19 PM

Homey, that sounds great. (The simpler the better.) One question, how do I set the OS to use ksh as the default instead of bash?
Thanks for the info!

homey 03-13-2007 06:42 PM

Originally, my /etc/passwd looks like this
Code:

fred:x:500:500::/home/fred:/bin/bash
You may have good success by changing it to something like this
Code:

fred:x:500:500::/home/fred:/bin/ksh
You might also check out this page toward the bottom.
http://aplawrence.com/Unixart/ksh.html

bostonantifan 03-14-2007 09:18 PM

Homey, thanks for the info and the link. I also found out that the command chsh will change the login shell, as well as the user entry in the passwd file. I'm now looking into how to create the .profile and src files for the Korn shell and where to place them to execute when I login. Again, thanks for your help.

Peter V.

Mehuge 03-20-2007 09:41 AM

From man ksh:-

/etc/profile read to set up system environment
$HOME/.profile read to set up user's custom environment


All times are GMT -5. The time now is 11:41 AM.