Question: in destiny 2 how do you get legendary shards?
Answer: Dismantling Legendary (3 Shards) and Exotic (5 Shards) gear and Mods.
Possible drop from decrypting Faction engrams (such as those from the Crucible, EDZ, Arcology, and so on)
Completing the Nightfall (2 Shards)