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 | results | description |
---|---|---|---|
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 | results | description |
---|---|---|---|
Enclosed figures | |||
( | 1) | ① | circled 1 |
( | a) | ⓐ | circled a |
etc. | |||
Punctuation | |||
- | -- | — | em dash |
- | -. | – | en dash |
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.