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
/home/work
[root@ex5b work]#
[root@ex5b work]#
[root@ex5b work]# cat go
#!/bin/ksh
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 ?

Thanks
Los Angeles1Asked:
Who is Participating?
 
wesly_chenCommented:
It seems ksh is not installed by default for RHEL 6
http://www.linux-archive.org/red-hat-linux/454413-lots-missing.html

Use yum to install it.
yum install ksh
0
 
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
0
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.