LinuxCommandLibrary

ksh

ksh

TLDR

Start an interactive shell session

$ ksh
copy


Execute specific [c]ommands
$ ksh -c "[echo 'ksh is executed']"
copy


Execute a specific script
$ ksh [path/to/script.ksh]
copy


Check a specific script for syntax errors without executing it
$ ksh -n [path/to/script.ksh]
copy


Execute a specific script, printing each command in the script before executing it
$ ksh -x [path/to/script.ksh]
copy

Copied to clipboard