O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Command Execution

The primary prompt (PS1 - default $ or # for super-users) is displayed whenever the Korn shell is ready to read a command. The secondary prompt (PS2 - default >) is displayed when the Korn shell needs more input.

Command Execution Format

command1 ; command2execute command1 followed by command2
command &execute command asynchronously in the background; do not wait for completion
command1 | command2pass the standard output of command1 to standard input of command2
command1 && command2execute command2 if command1 returns zero (successful) exit status
command1 || command2execute command2 if command1 returns non-zero (unsuccessful) exit status
command | &execute command asynchronously with its standard input and output attached to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required