One of the biggest confusions in electrical circuits is the difference between an Earth and a Ground. The ground reference of all electronics is not necessarily at the same potential as the Earth depending on the design. There's an Earth ground and a Chassis Ground. The Earth ground and Chassis ground can be the same thing. But in high end electronics, the power supply can have its own ground level (potential) which is different from the Earth (hence the reason it is referred to as a floating ground.) Without getting too technical, this design of a separate ground allows a device to better resist interference. So, basically, if you remove that Earth ground, you or one of your devices may become the path of least resistance

since the Earth ground is no longer part of the circuit. (e.g. when a UPS runs on battery power while it is unplugged.)
Hi Sandeep,
Then I'm confused.
First, in terms of AC power, there are typically three wires that come to a device. One, which is black, is referred to as the hot. The second, which is white, is commonly called the neutral. However, this is technically called the grounDED conductor. At the electrical service (circuit breaker box) where it comes in the building, this one is tied into the groundING system. Everywhere downstream from the circuit breaker panel, the white is separate.
The third is the wire are of interest, called the groundING conductor. This is bare copper or green in color. Again, at the circuit breaker panel, this is connected to the white. However, at this panel, it is also connected to the earth. It is connected to two eight-foot rods driven into the earth, to the cold water plumbing system (unless plumbing is all plastic), and if available connected to a Ufer (one of the reinforcing rods in concrete of the building foundation or concrete pad).
The purpose for the groundING system is just as you described. If you electrical items were to become energized, and you touch that item and something connected to the ground, such as a kitchen sink, a bathroom tub, a concrete floor in a basement, or so forth, then electricity would flow through you and into the ground, completing the circuit. Not a good thing to have happen!
So most electrical devices are grounded, meaning that all the non-energized metal of the device is connected to the grounding system, through the third prong of the plug. So if there is a failure in the device, which brings voltage to the housing or a case of the device, it will immediately flow through the grounding system, and presumably trip the circuit breaker, protecting the user from shock.
So, based on the above, earth and ground should be the same.
The exception would be after a transformer. When the electricity goes through a transformer, it no longer has the connection to the ground (earth). So if you were dealing with the output of a transformer, you could touch that, and touch the water pipe, and not be shocked, because no connection exists between those two. If your use of the term ground, separate from Earth, refers to electricity downstream from a transformer, then the two could be different. However, in this situation, the electricity coming out of the transformer could not shock you!
Similarly, a device running strictly on a battery backup (UPS) would have no connection to the earth, so grounding would not be necessary.
Except in this specific situation of dealing with output voltage from a transformer, ground (groundING) and Earth are the same. This is my understanding of it. If I'm wrong, please tell me where.
Thanks.
Gene.