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

10

3

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?

shinokada

Posted 2010-09-18T07:31:46.350

Reputation: 1 635

6The name of the symbol is "tilde" in case that helps you find references to it. – Paused until further notice. – 2010-09-18T07:47:21.097

Answers

14

F6 gave me ~ on my key board.

shinokada

Posted 2010-09-18T07:31:46.350

Reputation: 1 635

I don't know why, but after <kbd>F6</kbd> the <kbd>~</kbd> symbol on keyboard back to work again. – ton – 2016-02-15T14:09:51.893

Also on the german keyboard. – mrzmyr – 2017-11-06T19:01:40.633

4F6 is actually outputting something like ^[[17~ (escape-leftbracket-1-7-~). – Paused until further notice. – 2010-09-18T08:07:35.790

F5 worked on my HP pavilion dv6700, not F6 – None – 2012-03-08T15:42:35.273

7

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

bobince

Posted 2010-09-18T07:31:46.350

Reputation: 8 816

5

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 ,)

user731025

Posted 2010-09-18T07:31:46.350

Reputation: 51

5

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

Michael Hampton

Posted 2010-09-18T07:31:46.350

Reputation: 11 744

1

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.

atilkan

Posted 2010-09-18T07:31:46.350

Reputation: 131