RHEL 6 installation question (ksh vs bash)

I usually install RHEL 5.6, and normally get a ksh.

I installed RHEL 6 with default options, and I get the following:

[root@ex5b work]# pwd
[root@ex5b work]#
[root@ex5b work]#
[root@ex5b work]# cat go
ls -la
[root@ex5b work]# ./go
-bash: ./go: /bin/ksh: bad interpreter: No such file or directory
[root@ex5b work]#

Open in new window

How can a get a ksh.

DO I need to do a Yum update,

Do I need to set something ?

Los Angeles1Asked:
Who is Participating?
It seems ksh is not installed by default for RHEL 6

Use yum to install it.
yum install ksh
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Try running /bin/ksh to see if it's there at all.
Also: ls -l /bin/ksh  to verify if it's permissions have been removed (should be readable and executable)

You could either install ksh (as mentioned by wesley_chen or use bash instead
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.