if[ -f filename ]
checks for the existence of a file
checks for existence of a directory
checks for read permission on a file
checks for write permission on a file