Multiple choice technology operating systems

cmp -s $AXA_BA_ENVPATH_SRC/$file $AXA_BA_ENVPATH_TRG/$file -s stands for

  1. Print nothing for differing files; return exit status only.

  2. Print the byte number (decimal) and the differing byte values (octal) for each difference.

  3. Compares the given 2 fils and writes in a ouput file

  4. Compares the given 2 fils and displays the result

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In cmp command, the -s flag (silent mode) suppresses output and returns only the exit status: 0 if files are identical, 1 if different. This is useful in scripts where you only need to know if files differ, not see the differences.