종료(exit)와 종료 상태(exit status)
Last updated
Last updated
[ec2-user@TEST ~]$ ./bash.sh
hello
[ec2-user@TEST ~]$ echo $?
100[ec2-user@TEST ~]$ 123123
bash: 123123: command not found
[ec2-user@TEST ~]$ echo $?
127[ec2-user@TEST ~]$ echo hello
hello
[ec2-user@TEST ~]$ echo $?
0