Run the cable through the clamp and tighten it down. Splice the cable wires to the fan wires using a pigtail splice and a wire nut. Connect the ground to the grounding terminal in the connection box and the ground wire from the fan, if there is one.
In these cases, it should be wrapped with electrical tape to mark it as hot. The ground wires will be green and/or bare copper. The ground should be spliced with a short piece of wire and connected to each device and outlet box that has a grounding terminal. In these drawing the brass colored terminal represent the hot side of the device and the silver colored terminal represent the neutral. Ground wires and terminals are in green.
This diagram shows the wiring for multiple receptacles in an arrangement that connects each individually to the source. All wires are spliced to a pigtail which is connected to each device. This wiring allows for voltage at each device independent of the other outlets in the circuit.
Here one ground fault circuit interrupter protects multiple duplex receptacles coming after it, known as multiple-location protection. Two-wire cable runs from the gfci to all the following receptacles. The line terminals on the gfci are connected to the circuit source and the load terminals are connected with a pigtail splice to each of the following receptacles. This keeps each duplex connected directly to the gfci.