1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ksh.md

26 lines
530 B
Markdown
Raw Normal View History

2019-01-15 18:19:51 +01:00
# ksh
> Korn Shell, a Bash-compatible command-line interpreter.
> See also: `!`, `^`.
> More information: <https://manned.org/ksh>.
2019-01-15 18:19:51 +01:00
- Start an interactive shell session:
2019-01-15 18:19:51 +01:00
`ksh`
- Execute specific [c]ommands:
2019-01-15 18:19:51 +01:00
`ksh -c "{{echo 'ksh is executed'}}"`
2019-01-15 18:19:51 +01:00
- Execute a specific script:
2019-01-15 18:19:51 +01:00
`ksh {{path/to/script.ksh}}`
2019-01-15 18:19:51 +01:00
- 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:
2019-01-15 18:19:51 +01:00
`ksh -x {{path/to/script.ksh}}`