HowTo: Find Out KSH ( Korn Shell ) Version

by on June 17, 2011 · 5 comments· LAST UPDATED June 22, 2011


How do I check ksh version? How do I find out ksh version under UNIX like operating systems?

The original Korn shell version is known as ksh88. It is default on many UNIX like operating system including AIX 4. The ksh93 is an updated version. There are also modified versions of ksh93 which add new features. To get ksh version open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command:

ksh --version


echo ${.sh.version}



Sample outputs:

Fig.01: UNIX Check ksh version command ouput

Fig.01: UNIX Check ksh version command ouput

The above version indicates that I'm using the official ksh93t+ version. It was released on 2010-03-09. If above command failed try pressing ^V ( control + V ) OR ESC + ^V ( Escape followed by control + V ) to display version of the shell in Emacs mode.

More links and information:

  1. KSH 93 man page
  2. KSH 88 man page
  3. Visit home Page for the KornShell to download latest ksh93 version for Linux / UNIX / Apple OS X / BSD operating systems.
Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 5 comments… read them below or add one }

1 Tim June 19, 2011 at 11:29 pm

What desktop OS were you running when you took the Terminal screenshot?


2 nixCraft June 20, 2011 at 5:48 am

Sun (now Oracle) Solaris UNIX Gnome desktop.


3 Tim June 22, 2011 at 12:06 am

Thanks. I’ve never used Solaris.


4 Jared June 26, 2011 at 5:57 pm

There’s yet another method

use vi cmd mode
then type followed by ^V

10:55 > set -o vi
10:56 > PD KSH v5.2.14 99/07/13.2^C


5 juzz4fun.nash January 8, 2014 at 7:30 pm

Typing below at command prompt works for me:

what /bin/ksh



Leave a Comment

Tagged as: , , , , , , , , , , ,

Previous Faq:

Next Faq: