21

I can't type |. I have tried to press and hold Ctrl and Shift and then press and release U and then type 007c but nothing happens.

I do not know if I make the wrong sequence of pressing and holding. I get crazy! I am trying to enter the command:

sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

This is for my pinball 2000 running on Lubuntu/pinbox.

I selected Sweden and Swedish keyboard in the installation.

Eliah Kagan
  • 119,640
Anders
  • 211
  • 1
  • 2
  • 3

6 Answers6

24

Key combination to type the pipe character in a Swedish keyboard

Press the Alt Gr key and and after that the key between z and shift to get | in a Swedish keyboard. (This key has < (default), > (with shift) and | (with Alt Gr) in a Swedish keyboard.)

I think in most fonts the pipe character is one solid vertical bar, but I have seen it as two vertical bars with a small space between, and that is what it looks like on the key of some keyboards, like the picture in this link.

onboard helps explore keys and key combinations

enter image description here

You can install onboard and use it to explore which keys and key combinations to use to type various letters, digits and symbols in different languages.

sudodus
  • 47,684
4

I tried to do exactly as you tried, Anders. My keyboard is Brazilian (ABNT), so I have similar keyboard peculiarities and annoyances, as signals and accents, too.

According to this other issue, I pressed Enter at the end of the same sequence you tried to do, to make it work.

I think if you repeat the sequence you tried at your question, finally pressEnter (*), it will works!

PS: Don`t forget to release CtrlAlt after press U.

(*)space works,too.

Redbob
  • 1,686
1

I had this problem too. With a Ducky 65% keyboard the button Ubuntu assigned to vertical pipe wasn't physically existent. I ended up adding a cronjob on boot that uses xmodmap to set vertbar to keyboards altgr+6. This is the command: xmodmap -e "keycode 15 = 6 ampersand 6 asciicircum bar fiveeighths"

vault
  • 11
1

I found this symbol by holding down Shift and pressing the # button.

0

I found the pipe on my arabian keyboard: AltGr+~.

zx485
  • 2,865
0

I cannot follow your problem. I just changed my German keyboard for the purpose of trying to understand your problem by typing setxkbmap se on the command line, and Alt Gr + | got the same result as when using setxkbmap de.

dessert
  • 40,956