$0 ---- the name of the current program is actually an internal parameter, different from $1, $2... because it must have! $ # ---- The total number of parameters passed to the program, that is, the legendary array size $? ---- When the previous code or shell program exits in shell, if...
$0 ---- the name of the current program is actually an internal parameter, different from $1, $2... because it must have!
$ # ---- The total number of parameters passed to the program, that is, the legendary array size
$? ---- When the previous code or shell program exits in the shell, if it exits normally, 0 is returned, and vice versa.
$ * ---- A string consisting of all parameters passed to the program.
$ @ ---- Save all parameters in the form of "parameter 1" "parameter 2 "...
$ ---- PID of the program (process ID)
$! ---- PID of the previous command
The author "Tao can be very Tao"