Variable Meaning
$# Number of arguments given to current process.
$@ Command-line arguments to current process. Inside double quotes, expands to individual arguments.
$* Command-line arguments to current process. Inside double quotes, expands to a single argument.
$- (hyphen) Options given to shell on invocation.
$? Exit status of previous command.
$$ Process ID of shell process.
$0 (zero) The name of the shell program.
$! Process ID of last background command. Use this to save process ID numbers for later use with the wait command.
Web Page Copyright: 亞洲大學資訊電機學院 連耀南 yaonanlien@asia.edu.tw  special3.htm,  Sun Dec 14 23:14:45 CST 2025