? 就是2[root@sg-rhel6-17 etc]# ls /tmp/*.logls: cannot access /tmp/*.log: No such file or directory[root@sg-rhel6-17 etc]# echo $?2例子2 :ls 命令找到了结果. 成功返回0 所以$? 就是0[root@sg-rhel6-17 etc]# ls /tmp/*.tmp/tmp/reminder.tmp[root@sg-rhel6-17 etc]# echo $?0
匿名回答于2019-08-09 10:38:45