Though all dashes might seem the same, they’re not. Type Ctrl + Alt + - to insert an em dash at the cursor location.
One fairly universal option is similar to alt codes on Windows. We’re mainly focusing on Ubuntu because it’s so widely used, but these instructions should come in handy with other distributions as well.
Because there are so many Linux distributions, it can be tough to figure out how to type an em dash on your preferred distribution.