Linux Key Combinations

This explains how to type some special characters in Linux.

A much more thorough listing is to be found in Sander van Geloven’s Compose Key Sequences Reference Guide 2012 (Hellebaard, Utrecht).

It may be useful to understand something about the related concepts of character encoding, input method, and key code. See Character Encodings in Linux.

On my keyboard, the “right-Alt” key is the compose key. I had to set the compose key up myself, using System Settings → Keyboard.

To produce a character, hold down the compose with the key in the meta column below then type the key in the combo column below to get the result. The main key must be pressed shortly after pressing the compose key—otherwise it will time out.

When shift is required with meta, hold it down before holding down compose.

Some other useful commands in this connexion: dump keys, show key.

This list is not exhaustive. I’ve only listed the ones that seemed of most direct use to me. There are, for examples, whole other sets for entering special letters and symbols in a Cyrillic or Greek environment.

On my system, the key combinations for UTF-8 encoding for U.S. English keyboard is in /usr/share/X11/locale/en_US.UTF-8/Compose/.

Note that for some characters may be produced by several different key combinations. Use the one that's easiest to remember.

meta combo resultsdescription
Punctuation
< < «chevron or guillemet
> > »chevron or guillemet
< " left up dbl quote
> " right up dbl quote
< ' left up quote
> ' right up quote
? ? ¿inverted question mark
! ! ¡inverted exclamation point
- ^ ¯overbar or macron
0 ^ °degree
o o °degree
- - ­soft hyphen
 non-breaking space
. = bullet
. . ellipsis
Superscripts
^ 1 ¹
^ 2 ²
^ 3 ³
(etc)
Subscripts
_ 1
_ 2
_ 3
(etc)
Fractions
1 2 ½fraction 1/2
1 4 ¼fraction 1/4
3 4 ¾fraction 3/4
1 10 fraction 1/10
(etc)
Math
x x ×multiplication
- : ÷division
. . ·middle dot
- + ±plus or minus
- , ¬negation
8 8 infinity
{ } empty set
/ = not equal
v l |vertical line
v / square root
d i diameter
: . therefore
. : because
= > implies
= _ identical to
Editing
0 s §section
P ! paragraph or pilcrow
Latin
a _ ªfeminine ordinal
o _ ºmasculine ordinal
` aeiou
AEIOU
àèìòù
ÀÈÌÒÙ
grave accents
' 'aeiou
nswy
AEIOU
NSWY
´áéíóú
ńśẃý
ÁÉÍÓÚ
ŃŚẂÝ
acute accents
^ aeiou
AEIOU
âêîôû
ÂÊÎÔÛ
circumflex
" aeiouy
AEIOUY
äëïöüÿ
ÄËÏÖÜŸ
umlaut or dieresis
, cdhst
CDHST
çḑḩşţ
ÇḐḨŞŢ
cedilla
~ nao
NAO
ñãõ
ÑÃÕ
tilde
s s ßsharp s
t h þthorn
T H ÞThorn
d h ðeth
D H ÐEth
n g ŋeng
N G ŊEng
k k ĸGreenlandic k
/ oOlL øØłŁstroke
a a åa with ring
A A ÅA with ring
a e æligature ae
A E Æligature AE
o e œligature oe
O E Œligature OE
e e əschwa
< cCsS čČšŠcaron
d < ďcaron
t < ťcaron
l < ľcaron
T < Ťcaron
v zZ žŽcaron
c acgh
ijkno
rsuz
ǎčěǧȟ
ǐǰǩňǒ
řšǔž
caron
c dlt ďľťcaron
= oOuU őŐűŰdouble acute
o aAoO åÅůŮring
; aeiou
AEIOU
ąęįǫų
ĄĘĮǪŲ
ogonek
; stST șțȘȚcomma below
, klnr
KLNR
ķļņŗ
ĶĻŅŖ
comma below
, gG ģĢcomma on G
. abcde
fghmn
rstwxyz
ȧḃċḋė
ḟġḣṁṅ
ṙṡṫẇẋẏż
dot above
- aeiou
AEIOU
āēīōū
ĀĒĪŌŪ
macron above
! abdehik
lmnorst
uvwyz
ạḅḍẹḥịḳ
ḷṃṇọṛṣṭ
ụṿẉỵẓ
dot below
. i ıdotless i
. I İdotted I
U aeiou
AEIOU
ăĕĭŏŭ
ĂĔĬŎŬ
breve
- dD đĐstroke
/ hH ħĦh stroke
Greek symbol
/ u µmicro or mu
Vietnamese
+ oOuU ơƠưƯhorn
? aeiouy
AEIOUY
ảẻỉỏủỷ
ẢẺỈỎỦỶ
hook
Currency
L = £pounds
Y = ¥yen
W = won
d = dong
N = naira
R = rupee
c / ¢cents
T / Ŧtugrik
F r franc
C r cruziero
P t pesetas
= C currency Euro
Business
o c © or 0 c, copyright
o r ®registered
t m trademark
s m service mark
m / mill
% o per mille
Smileys
: ) smiley
: ( frowny
Music
# b flat
# # sharp
# f natural
# q quarter note
# e eighth note
# E beamed eighth note
# S beamed sixteenth note
Other symbols
N O numero
< - left arrow
- > right arrow
< 3 black heart

Some combinations use three keystrokes. For these, the compose key should be held down only while the first, meta, key is pressed.

meta combo resultsdescription
Enclosed figures
( 1) circled 1
( a) circled a
etc.
Punctuation
- -- em dash
- -. en dash

General Unicode entry

To input a Unicode character code, such as “U+25A0” for “BLACK SQUARE”, ■, hold down CTRL+SHIFT+u, then type in the code 25A0, and hit return.