TIDE
Languages

KSH

Installing KornShell (ksh) on Ubuntu in TIDE

KSH

KornShell (ksh) is an interactive command-line shell and script programming language developed by David Korn at AT&T Bell Laboratories. It combines features from the Bourne shell (sh) and C shell (csh), introducing advanced capabilities such as associative arrays, built-in floating-point arithmetic, and robust job control.

Installation

Install KornShell on Ubuntu using apt:

apt update
apt install -y ksh

Verification

Verify that ksh is installed:

ksh --version

Writing and Running Code

Create a KornShell script named hello.ksh:

#!/usr/bin/env ksh

print "Hello, World!"

Make the script executable and run it:

chmod +x hello.ksh
./hello.ksh

Alternatively, execute it directly with ksh:

ksh hello.ksh

Official Resources

On this page