To write right-to-left in Linux, press Right-ALT+] and end by ALT+P.
To write left-to-right in Linux, press Right-ALT+[.
Use RLE and PDF to begin and end a right-to-left embedding. The unicode for
LRE is U+202A, the unicode for RLE is U+202B and the unicode for PDF
is U+202C. In Ubuntu, hold CTRL-SHIFT to type a unicode character. For
example, to type an RLE, press the following keys: CTRL SHIFT U + 2 0 2 B.
Hold the left ALT and the right SHIFT keys to switch the Ubuntu keyboard layout.
References