$ ./guess_the_languageLinux CLI
Linux CLI · medium · #55

If app.conf contains no line matching "timeout", what does echo $? print?

grep timeout app.conf
echo $?
  1. 1
  2. 0
  3. 2
  4. 127
grep exits 0 when a line matches, 1 when nothing matches, and 2 on errors such as a missing file.
Play Linux CLI ▸