CentOS / RHEL: Install KornShell (KSH)

To install the KornShell (KSH) on CentOS or Red Hat Enterprise Linux (RHEL), you can use the following steps:

  1. Update the package list:
    $ sudo yum update
  2. Install KSH:
    $ sudo yum install ksh
  3. Verify the installation:
    $ which ksh

The which command will display the location of the KSH executable if it’s installed.

After installation, you can start the KSH shell by typing ksh in the terminal. To make KSH the default shell for a user, you can use the chsh (change shell) command. For example:

$ chsh -s /bin/ksh

This will change the default shell for the current user to KSH.

(https://discoverstillwater.com/)

Leave a Comment