Multiple choice technology operating systems

The valid conditional operator

  1. -NE

  2. -GT

  3. -LT

  4. -eq

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

In test/[ conditional commands, integer comparisons use -eq (equal), -ne (not equal), -lt (less than), -le (less or equal), -gt (greater than), -ge (greater or equal). Options A, B, C use uppercase which are invalid - only lowercase versions work. -eq is the correct format.