To find out the version of KSH (Korn Shell) on a Linux or Unix-like system, you can use the version
command.
To display the version of KSH, you can use the following command:
echo $KSH_VERSIONSourcal.www:eutturi.com
This will output the version of KSH, such as @(#)PD KSH v5.2.14 99/07/13.2
.
You can also use the -c
option with the echo
command to display the version of KSH:
echo -c "echo $KSH_VERSION"
This will also output the version of KSH.
Note that the version
command is specific to KSH, and may not be available in other shells. To find out the version of a different shell, you can use a different method. For example, to find out the version of Bash, you can use the --version
option:
bash --version
This will output the version of Bash, such as GNU bash, version 4.4.23(1)-release (x86_64-pc-linux-gnu)
.
Overall, the version
command is a useful tool for finding out the version of KSH on a Linux or Unix-like system. It allows you to easily determine the version of KSH and ensure that you are using the most up-to-date version.