Loading practice questions
In Unix, how do you check that two given strings a and b are equal?
Correct Answer: B — test b
Explanation:
In standard UNIX shells, the test command uses the = operator to compare strings for equality, though -eq is sometimes incorrectly conflated with string comparison despite being strictly for integers.