Any lamp in your home, office, or shop that is turned on and off from a single location is controlled by a one-way switch. These switches are by far the most commonly used switch in the home. They are also the simplest switch to use when adding a new light, such as a wall-mounted or ceiling light, in your home.
Shut off the electrical power at the main circuit breaker.
Run a 14-gauge 2-wire with ground cable from the breaker box to your switch location. From the same location, run a second 14-gauge cable and connect it to the screw terminals on the new light.
Mount a switch box to the wall or stud. Mounting the box in an existing wall is easiest with an "old work box," available at home supply and hardware stores. An old work box has spring loaded ears that are folded in when the box is pushed through the hole cut for it in the wall. These ears pop out, trapping the box in the hole. A screw is then tightened, and that clamps the wall firmly between the ear and a flange on the box.
Pull the 14-gauge cable through one of the holes in the box, leaving about six inches exposed. Do the same with the cable connected to the light.
Twist the bare copper ground wires together. To ensure a tight fit, you can twist them together with a wire nut.
Strip about one-half inch of insulation from both white wires and join using a wire nut.
Strip about one-half inch of insulation from both black wires. Connect one to each screw terminal on the switch.
Mount the switch to the box using the included screws, then install a switch cover to complete the job.
Turn the main breaker back on.
Working with the electricity on can result in electric shock, which can result in injury or death. Always switch the main breaker off before starting electrical work.