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

Special Parameters

Some special parameters are automatically set by the Korn shell, and usually cannot be directly set or modified.

$# number of positional parameters
$@ all positional parameters ("$1", "$2", ..., "$n")
$* all positional parameters ("$1 $2... $n")
$? exit status of the last command
$$ process id of the current shell
$ current options in effect
$! process id of last background command

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