Check is file exist shell code example Example: Check is file exist shell FILE=/etc/resolv.conf if [ -f "$FILE" ]; then echo "$FILE exists." fi