Use arithmetic context for integer comparisons.
Section: Tests and Conditionals
Compare integers
bash
bash
if (( count > 10 )); then echo large; fiExplanation
Cleaner than -gt for many Bash scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Tests and Conditionals