select creates a named selection from an atom selection. Selections are one of the most powerful aspects of PyMOL and learning to use selections well is paramount to quickly achieving your goals in PyMOL. Also see selection algebra[].
select (selection) select name, (selection) select name = (selection) # (DEPRECATED)
cmd.select(string name, string selection)
select near , (ll expand 8) select near , (ll expand 8) select bb, (name ca,n,c,o )
Type help selections for more information about selections.