2025-03-14 21:59:59 -06:00
|
|
|
# ksh
|
|
|
|
|
|
|
|
|
|
> Korn Shell, a Bash-compatible command-line interpreter.
|
2025-04-03 20:36:56 -06:00
|
|
|
> See also: `!`, `^`.
|
|
|
|
|
> More information: <https://manned.org/ksh>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start an interactive shell session:
|
|
|
|
|
|
|
|
|
|
`ksh`
|
|
|
|
|
|
|
|
|
|
- Execute specific [c]ommands:
|
|
|
|
|
|
|
|
|
|
`ksh -c "{{echo 'ksh is executed'}}"`
|
|
|
|
|
|
|
|
|
|
- Execute a specific script:
|
|
|
|
|
|
|
|
|
|
`ksh {{path/to/script.ksh}}`
|
|
|
|
|
|
|
|
|
|
- Check a specific script for syntax errors without executing it:
|
|
|
|
|
|
|
|
|
|
`ksh -n {{path/to/script.ksh}}`
|
|
|
|
|
|
|
|
|
|
- Execute a specific script, printing each command in the script before executing it:
|
|
|
|
|
|
|
|
|
|
`ksh -x {{path/to/script.ksh}}`
|