27

With the default Raspberry Pi keyboard layout and a US keyboard, when I press Shift+| the result would be ~

and if I press on ~ or Shift+~ I would get a different symbol.

Paul Slocum
  • 231
  • 2
  • 11
Suhaib
  • 389
  • 1
  • 3
  • 11

2 Answers2

32

Do other keys not function as you wish, as well? Such as # outputting ?

  1. Make sure you have set the correct locales and default locale using sudo raspi-config.

  2. sudo locale

    • Make sure these are what you think they should be
  3. sudo dpkg-reconfigure keyboard-configuration

  4. sudo reboot

earthmeLon
  • 1,414
  • 1
  • 11
  • 23
3

You can get the | (pipe) symbol using the Shift + \ shortcut. The Shift can be found on the left side of your keyboard, on the second row from bottom.

The \ (backslash) key can usually be found above the Enter key (on the fourth row from bottom).

keyboard with backslash between Enter and Backspace

On other keyboards, it is located on the left side of a keyboard, next to the Shift key: keyboard with backslash on the left

(images are edited versions of pictures found on http://www.wpclipart.com/computer/hardware/keyboard/keyboard_black.png.html and http://www.keyboardco.com/keyboard_images/black_foreign_chicony_keyboard_large.jpg)

Lekensteyn
  • 1,521
  • 1
  • 15
  • 24