≡ Menu

HowTo: Find Out KSH ( Korn Shell ) Version

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.

{ 5 comments… add one }

  • Tim June 19, 2011, 11:29 pm

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

    • nixCraft June 20, 2011, 5:48 am

      Sun (now Oracle) Solaris UNIX Gnome desktop.

      • Tim June 22, 2011, 12:06 am

        Thanks. I’ve never used Solaris.

  • Jared June 26, 2011, 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

  • juzz4fun.nash January 8, 2014, 7:30 pm

    Typing below at command prompt works for me:

    what /bin/ksh


Leave a Comment

   Tagged with: , , , , , , , , , , ,