Home Owner, Anza Vista, San Francisco, CA
The cable cars? Yes, they are used as commuter transit by people who happen to live along those lines. The fare for them is included in the monthly Fast Pass, so it's no more expensive for daily riders to take them than to take other transit options, even though the cash fare is much higher.
A "trolley" is actually more like a bus. Most people just refer to them as "electric buses," but the SFMTA officially calls them trolley buses: http://www.sfmta.com/cms/mfleet/trolley.htm
Here's more information about the different types of transit vehicles: http://www.sfmta.com/cms/mfleet/indxfleet.htm