V Võ Kiều Member Jan 6, 2022 #1 What is $? In bash script? Answer $? -The exit status of the last command executed. $0 -The filename of the current script. $# -The number of arguments supplied to a script. $$ -The process number of the current shell.
What is $? In bash script? Answer $? -The exit status of the last command executed. $0 -The filename of the current script. $# -The number of arguments supplied to a script. $$ -The process number of the current shell.