1. linux中shell变量$#,$@,$0,$1,$2的含义解释:
$$:shell本身的PID(processID);
$!:shell最后运行的后台process的PID;
$?:最后运行的后台process的PID;
$* = $@:所有参数列表。“$*” 以“$1 $2 ... $n”的形式输出所有参数。
$#:添加到SHELL的参数的个数。
$0:shell本身的文件名。
$1~$n:添加到shell的各参数值。$1是第1个参数、$2是第2参数。
2.halt、reboot、shutdown -r now、init 各是什么意思?