Evaluate expressions and return exit status 0 (true) or 1 (false). Used for file attribute testing, string comparison, and numeric checks in scripts.
bash
test-tool <expression>
-f file: True if file exists-d dir: True if directory exists-z str: True if string is emptyn1 -eq n2: True if numbers equals1 = s2: True if strings equalbash
test-tool -f /etc/passwd
test-tool -d /home/user
test-tool 5 -gt 3