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

137,800

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!

Solution 5

Type the combination like Alt gr + (top right char, for me Ü, for you ^) and after typing hit "space".

Briefly: Type the combination and after hit space.

Share:
137,800

Related videos on Youtube

shinokada
Author by

shinokada

IB Diploma and MYP mathematics teacher who loves coding.

Updated on September 17, 2022

Comments

  • shinokada
    shinokada almost 2 years

    I am using Ubuntu terminal and want to type this:

    sudo -H -u gitosis gitosis-init < ~/.ssh/id_rsa.pub
    

    However I am not able to find tilde (~) on my Norwegian keyboard.

    Can anyone tell me how to type it?

    • Dennis Williamson
      Dennis Williamson almost 14 years
      The name of the symbol is "tilde" in case that helps you find references to it.
  • Dennis Williamson
    Dennis Williamson almost 14 years
    F6 is actually outputting something like ^[[17~ (escape-leftbracket-1-7-~).
  • zack_falcon
    zack_falcon over 12 years
    F5 worked on my HP pavilion dv6700, not F6
  • ton
    ton over 8 years
    I don't know why, but after <kbd>F6</kbd> the <kbd>~</kbd> symbol on keyboard back to work again.
  • e382df99a7950919789725ceeec126
    e382df99a7950919789725ceeec126 over 6 years
    Also on the german keyboard. 😊
  • wogsland
    wogsland about 3 years
    And similarly option + ¨ followed by a space on a mac...