Reverse osmosis (RO) pushes water through a very fine semi-permeable membrane under pressure. Water passes through, and a large share of the dissolved substances doesn't. The rejected material is flushed away in a separate stream of wastewater, often called concentrate or brine.
Many systems store treated water in a small tank; others produce on demand. Water System Guide's reverse osmosis systems page gives an overview of the categories.
RO is usually a drinking-water solution at one tap, not a whole-house fix. For filtration in general, see Filter Fundamentals.