Installing KornShell (KSH)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.