Multiple choice

Which of the following operators represents equality relational operator?

  1. =

  2. ==

  3. - eq

  4. None of the above

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

 -eq checks relation between two operands . Checks if the value of two operands are equal or not, if yes then condition becomes true. Example - [ $a -eq $b ] is not true. if a=10 and b=20.