How do you connect a digital optical audio cable from a tv to a home theater?

If your home theater receiver has an optical audio input, plug it from the output of the TV to the input of the receiver.