On Linux (maybe only certain distros, not sure) the keys are different,
but you can enable a Compose key and enable special character keybinds as well.
For example on Mint:
en–dash is "<compose> <minus> <minus> <period>"
em—dash is "<compose> <minus> <minus> <minus>"