Interview question
This question is step 9 of the course “Your first bash script”What an exit code is
What is a command's exit code? What does 0 mean, and what does any other number mean? How do you find out the exit code of the last command, and how does a script set its own? And what does mkdir /backup && echo ok || echo fail print if the directory /backup already exists?
Just like in an interview: answer in your own words, and the AI will mark which key points you covered. To pass, cover more than half of them.