Test != not equal = equal -eq equal -gt greater than -ge greater than or equal -lt less than -le less than or equal ! logical negotiation -a logical and -o logical or -r file true if hte file exists and is readable -w file true if the file exs and is writable -x file ..........................executable -s file ......................size >0 -d file true if .... directory -f file true if..... file -z true if the lenght of the str is zero example of test #test to see if only one argument is passed to the shell script if test $# !=1 then echo "You must supply one argument"; exit fi #test for two or more arguments if test $# -lt 2 then echo "You must supply two or more arguments"; exit fi #test to see if the argument is a file or directory if test $# !=1 then echo "you must supply one argument"; exit fi if test -d $1 then echo "$1 is a directory" else if test -f $1 then echo "$1 is a directory" else echo "$1 does not exist" fi