conditionals --- if somecommand; then # do this if somecommand has an exit code of 0 fi --- #!/bin/bash if grep -q root /etc/passwd; then echo root is in the password file else echo root is missing from the password file fi ---