Cholesterol is a component of eukaryotic cell membranes and is typically absent in prokaryotic cell membranes, such as those of bacteria.