First page Back Continue Last page Overview Graphics
Control Structures
if/then/elif/else/fi
- if [ $UID != 0 ]
- then
- echo "you are not root"
- logger -p security.alert "$USER is running $0 at `date`"
- elif [$HOME != /root ]
- then
- echo 'home directory is wrong"
- else
- fi
while/do/done
Notes: