To see the green flash, you need to be in a location with a clear horizon, and you need to be looking directly at the sun as it rises or sets. The flash typically lasts for only a few seconds, and it can be difficult to see if you don't know what you're looking for.
The green flash is a beautiful and fascinating phenomenon, and it's definitely worth trying to see if you're ever in the right place at the right time.