Korn Shell is a Unix shell program, mainly used on a variety of UNIX systems, such as: Sun/oracle Unix,aix and so on. Ksh was developed by David Korn, who has Bell Labs, and Ksh combines the interactive features of the C shell with the syntax of the Bourne shell.
Installing the Korn shell (Ksh)
Install the Ksh program via Yum under the Linux terminal
$sudo Yum Install Ksh or #yum install Ksh
Command output:
Loaded plugins:fastestmirrordetermining fastest mirrors*Base: ftp.nsysu.edu.tw*extras:ftp.cs.pu.edu.tw*updates:mirrors.stuhome.netBase|3.7Kbxx:xxExtras|3.4Kbxx:xxUpdates|3.4Kbxx:xxUpdates/primary_db |3.9MBxx: toSetting up Install processresolving Dependencies--> Running Transaction Check---> Package ksh.x86_640:20100621- +. El6_4.4Would be installed--> Finished Dependency Resolutiondependencies resolved============================================================================================Package Arch Version repositorysize============================================================================================Installing:ksh x86_6420100621- +. El6_4.4Updates687ktransaction Summary============================================================================================Install1Package (s) Total Download size:687kinstalled Size:1.5MIs ThisOK [y/N]:D ownloading packages:ksh-20100621- +. El6_4.4. x86_64.rpm |687Kbxx:xxRunning rpm_check_debugrunning Transaction testtransaction Test succeededrunning transactioninstalling:ksh-20100621- +. El6_4.4. x86_641/1Verifying:ksh-20100621- +. El6_4.4. x86_641/1Installed:ksh.x86_640:20100621- +. El6_4.4 Complete!
To view the installation path for Ksh, enter the following command:
$whereis Ksh or use the grep command:--color ksh/etc/shells
Command output:
Set Ksh as the system default shell
Superuser (root) can use the following command to change the login shell program for any user.
The command is as follows:
-s/bin/ksh user name or -s/bin/ksh user name
To verify the shell program that the current user is using, enter the following command:
$echo $SHELL
To view the version number of the Ksh, enter the command:
$ksh--version
Installing KornShell (KSH)