/etc/ is a directory; hosts is a filename.
Code:
ls /etc/hosts
ls -l /etc/hosts
cd /etc
ls hosts
ls -l hosts
Try that.
Code:
if [ < pretend syntax> some test returns true ] ; then
< do something >
else
< do a different thing >
fi
fi marks the end of an if statement.
so, "exit 0 fi" is only part of an if block.
exit 0 - means end with success
exit 1 - means end with failure - the 1 can be other non-zero numbers