How can I type tilde (~) in the Ubuntu terminal with a Norwegian keyboard?

Solution 1:

F6 gave me ~ on my key board.

Solution 2:

AltGr+¨ (umlaut, just below backspace), then (assuming the deadkey variant of the layout) Space.

Solution 3:

Hold down together:

  1. Ctrl + Shift + u - Underlined u should appear.
  2. Release keys
  3. Enter 7E (Unicode for ~)
  4. Press Space

For the full list of Unicode codes please refer to the following link:

https://unicode-table.com/en/#control-character

It may look too much, but it's the global solution for all languages and keyboard layouts ,)

Solution 4:

~ refers to your home directory, so you can always type $HOME instead of ~ ... if you can find $ on your keyboard, that is!