Install Ksh On A Debian, Ubuntu, Kali, CentOS, Fedora, Raspbian And MacOS

Install Ksh On A Debian, Ubuntu, Kali, CentOS, Fedora, Raspbian And MacOS

ksh

Korn Shell.
`bash` and `sh`-compatible command line interpreter.

Maintainer: Nicholas Bamber



Section: shells

Install ksh

  • Debian apt-get install ksh Click to copy
  • Ubuntu apt-get install ksh Click to copy
  • Kali Linux apt-get install ksh Click to copy
  • CentOS yum install ksh Click to copy
  • Fedora dnf install ksh Click to copy
  • Raspbian apt-get install ksh Click to copy
  • macOS brew install ksh Click to copy

Korn Shell. `bash` and `sh`-compatible command line interpreter.

How to use ksh?

Below are few example commands for ksh that you can use in the terminal.

Start interactive command line interpreter:
kshClick to copy
Execute a command:
ksh -c commandClick to copy
Run commands from a file:
ksh fileClick to copy
Run commands from a file and print them as they are executed:
ksh -x fileClick to copy
To install the latest version of ksh in your favorite operating system just copy the ksh installation command from above and paste it into terminal. It will download and install the latest version of ksh 2026 package in your OS.