Ubuntu – Can’t type “|” (vertical pipe)

command linekeyboardlubuntu

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.

Best Answer

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.