Skip to content

Glossary: Operating System Basics

if

Also written: then, else, fi

A script statement that runs the commands after `then` when a test is true and the ones after `else` when it's false; `fi` ends it. `health.sh` uses it to choose OK or WARN.

Where the book teaches it

Related terms

scriptfunctions