Names

Names[] returns a list of all defined symbols.

Names["pattern"] returns a list of all defined symbols matching the regex pattern.

Attributes[Names] := {Protected}