6

I need to type a character similar that looks like space, in Windows I would've used Alt+255. But I don't know how to do this Ubuntu... Can I somehow use Alt codes in Ubuntu, or use another shortcut?

jarno
  • 6,205
PKM
  • 839

2 Answers2

10

Either Ctrl+Shift+U00A0 or AltGr+Space: it's called a non-breaking space.

See this thread on Ubuntu Forums for more info.

Zanna
  • 72,471
  • The Altgr + space does not work on all keyboard layout variants like classic ones in my experience, but it will work with the default one. You may want to disable that shortcut by changing the layout variant or by running setxkbmap -option nbsp:none because you might type it accidentally instead of typing normal space when typing shell pipe command by some keyboards; e.g. I have pipe character | behind AltGr key in Finnish keyboard. – jarno Apr 02 '20 at 10:13
  • AltGr+Space did not work fro me, but AltGr+Space+Space did – Steve Jorgensen Mar 09 '22 at 20:22
  • I have to press Enter after typing Ctrl + Shift + U and 00A0 to make it work – oOnez Aug 07 '24 at 09:09
4

Press the Compose key (default Shift+AltGr although you can change it using gnome-tweak-tool), then press Space twice.

Shift+AltGr Space Space

Matt Raines
  • 141
  • 4