Images of shells by the sea

ksh – KornShell command interpreter

ksh, or KornShell, is a command interpreter and scripting language originally developed by David Korn at Bell Labs. It extends the Bourne shell with features for interactive command entry and more sophisticated shell programming.

KornShell has influenced many other Unix shells, including Bash and Zsh. Its scripting features include arithmetic evaluation, functions, arrays and advanced parameter expansion. These facilities allow scripts to perform calculations and process data while remaining within the shell environment.

The ksh93 implementation provides associative arrays, floating-point arithmetic and compound variables. These capabilities make it possible to model structured information and perform operations that would otherwise require separate utilities or a general-purpose programming language.

For interactive use, ksh provides command history, aliases, job control and configurable command-line editing. Users can work with Emacs and Vi-style controls and define reusable functions for frequently performed tasks.

The shell supports ordinary pipelines and redirection alongside process substitution and other extensions. Its variable and function facilities are intended to support substantial scripting applications while retaining compatibility with many traditional shell constructs.

This is free and open source software.

Key Features

  • Provides an interactive command interpreter and scripting language.
  • Supports Bourne shell constructs and KornShell extensions.
  • Provides indexed and associative arrays.
  • Supports compound variables and structured data representations.
  • Offers floating-point and integer arithmetic.
  • Provides mathematical functions and arithmetic expressions.
  • Supports shell functions and function autoloading.
  • Offers command substitution and process substitution.
  • Supports pipelines, redirection and here documents.
  • Maintains command history and aliases.
  • Provides Emacs and Vi-style command-line editing.
  • Offers foreground and background job control.
  • Supports signal handling and shell traps.
  • Provides variable references and advanced parameter expansion.
  • Supports dynamically loaded built-in commands.
  • Offers configurable prompts and startup files.

Website: github.com/ksh93/ksh
Support:
Developer: David Korn and ksh93u+m contributors
License: Eclipse Public License v2.0

ksh is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Shells
zshAdvanced and programmable command interpreter
NushellAdopts the Unix philosophy of shells where pipes connect command together
fishSmart and user-friendly command line shell
XonshPython-powered, cross-platform shell language and command prompt
bashsh-compatible command language interpreter
MurexIntuitive, typed and content aware shell
PowerShellCross-platform automation and configuration framework
ElvshExpressive programming language and a versatile interactive shell
OilsBilled as an upgrade to bash. Written in Python.
DASHPOSIX-compliant implementation of sh that aims to be as small as possible
shShell parser, formatter, and interpreter
tcshC shell with file name completion and command line editing
mkshMirBSD Korn shell
ksh Unix shell which was developed by David Korn at Bell Labs
brushPOSIX- and bash compatible shell
RashLanguage, library, and shell REPL for Racket.
ionModern system shell that features a simple, yet powerful, syntax
CicadaBash-like command environment with scripting and job control
YashYet another shell
okshPortable OpenBSD ks
esExtensible shell with higher-order functio
duneA shell by the beach
coshConcatenative command-line she
MarcelModern command environment combining Python with Unix pipelines
HilbishHighly extensible command environment configured with Lua
gshPOSIX-compatible generative shell
arshStatically typed scripting language with shell-like features
Sushi shellBash clone shell implemented in Rust
lokshLinux port of OpenBSD's Korn-compatible command interpreter
fortshShell written in Fortran
hshSlightly different take on your shell
ReShellModern shell
rashRudimentary shell
DaxCustom Unix shell implementation
cjshPOSIX-oriented command environment with modern interactive features

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted