Is it possible to type μ on the bash command line without copying and pasting?











up vote
3
down vote

favorite
1












This may seem a bit of a strange question, but it occurred to me that when typing a command such as the following, I always have to copy and paste the character from Wikipedia.



echo '5 μs' >> /tmp/Output


Is there a way to input such a character directly using an escape sequence on keyboard shortcut on a standard English keyboard?



For example, in Vim, one can do C-k,m* to produce this character.










share|improve this question
























  • Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
    – roaima
    2 hours ago

















up vote
3
down vote

favorite
1












This may seem a bit of a strange question, but it occurred to me that when typing a command such as the following, I always have to copy and paste the character from Wikipedia.



echo '5 μs' >> /tmp/Output


Is there a way to input such a character directly using an escape sequence on keyboard shortcut on a standard English keyboard?



For example, in Vim, one can do C-k,m* to produce this character.










share|improve this question
























  • Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
    – roaima
    2 hours ago















up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





This may seem a bit of a strange question, but it occurred to me that when typing a command such as the following, I always have to copy and paste the character from Wikipedia.



echo '5 μs' >> /tmp/Output


Is there a way to input such a character directly using an escape sequence on keyboard shortcut on a standard English keyboard?



For example, in Vim, one can do C-k,m* to produce this character.










share|improve this question















This may seem a bit of a strange question, but it occurred to me that when typing a command such as the following, I always have to copy and paste the character from Wikipedia.



echo '5 μs' >> /tmp/Output


Is there a way to input such a character directly using an escape sequence on keyboard shortcut on a standard English keyboard?



For example, in Vim, one can do C-k,m* to produce this character.







command-line keyboard-shortcuts keyboard input-method






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Tomasz

9,13052964




9,13052964










asked 11 hours ago









merlin2011

1,67431423




1,67431423












  • Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
    – roaima
    2 hours ago




















  • Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
    – roaima
    2 hours ago


















Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
– roaima
2 hours ago






Standard (UK) English keyboard with Compose enabled. à á å ä æ § ¥ € £ ß µ. And many others.
– roaima
2 hours ago












3 Answers
3






active

oldest

votes

















up vote
8
down vote













Yes, there are at least this four (five?) ways:





  1. AltGr

    Make your keyboard layout English (international AltGr dead keys).

    Then the right Alt key is the AltGr key. Pressing AltGr-m will generate a µ. Many other keys also generate other characters: AltGr-s for ß, and Shift-AltGr-s for §.



    There is a separate keyboard layout for the console (the true consoles at AltCtrlF1 up to F6) and one for the GUI in X. Changing either depends on your distro (CentOS, Fedora, Debian, etc.) and Display manager (gnome, kde, xfce, etc.). For example, installing xfce4-xkb-plugin will allow a button on a panel to configure the keyboard and switch between several keyboard layouts for X in XFCE.




  2. Compose

    Make some key the Compose key. Then, presing Compose, releasing it, pressing /, releasing it, and then u will generate a µ.



    Defining a Compose key is usually done with xkb or with a keyboard layout applet.

    For example, in Gnome usually available at Region & Language section, or maybe, Switch Keyboard Layout Easily.



  3. Unicode

    There is a generic way to type any Unicode character (if your console supports it). Yes any codepoint of the 1,111,998 possible characters (visible if your font(s) could draw them). Press, as one chord (at the same time) ShiftCtrlu, release them (Probably, an underlined u̲ will appear), then type b5 which is the Unicode codepoint (always in Hex) for the character. And to end, type space or enter (at least).



  4. Readline

    In a bash prompt (as you tagged the question) is possible to use readline to generate a µ (mu).



     bind '"eu": "µ"'


    Or add the line:



     "eu": "µ"


    to ~/.inputrc, read it with Alt-x Alt-r or start a new bash shell (execute bash) and when you type:



    Alt-u



    An µ will appear.



  5. Input method

    Probably too much for a short answer like this.







share|improve this answer























  • Method 3 unicode, does not work for me.
    – ctrl-alt-delor
    4 hours ago










  • Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
    – Isaac
    4 hours ago










  • I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
    – 神秘德里克
    3 hours ago










  • No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
    – Isaac
    3 hours ago












  • Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    35 mins ago


















up vote
4
down vote













If you enable your compose key, you can print this symbol with the compose/u sequence, like so: µ



The full range of symbols available, and their respective key sequences, is documented on the Ubuntu wiki.






share|improve this answer























  • Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    33 mins ago


















up vote
2
down vote













Using input methods



CIN-file input methods are usable in X11 and in my user-space virtual terminals. One of the commonly-collected ones, greek.cin, has this character. One simply enters m (lower case) and it is the only conversion.



Using the ISO 9995 common secondary group



Your X11 keyboard map or your virtual terminal might not implement this, but if it does there is a standard country-independent key sequence (of two key chords) for this character defined by ISO/IEC 9995: ⇨ Group 2 Select B07





  • ⇨ Group 2 Select is conventionally the chord ⇧ Level 2 Shift+⇮ Level 3 Shift because the USB HID specification and others lack a code for a proper ⇨ Group 2 Select key and such a key does not exist on most keyboards.


  • ⇮ Level 3 Shift is usually engraved ⌥ Option or ⇮ AltGr on 105/106/107/109-key keyboards or ⎇ Alt on 104-key keyboards.

  • B07 is the standard ISO/IEC 9995 notation for a physical position on row "B" and column "07", and the key there is usually engraved M.


Where implemented, this so-called common secondary group of ISO/IEC 9995 is not supposed to vary by the selected country's layout, and is always available.



Using whatever chord is defined in your keyboard layout



The specifics of keyboard layouts are beyond the scope of this answer, and there are plenty of answers here dealing with them.



Précis:



There is a keyboard layout for X11 applications, there is a possibly related keyboard layout for kernel virtual terminals (if your operating system has such), and there is are keyboard layouts for user-space virtual terminals (if you are using such). Layouts generally provide such characters as a chord with ⇧ Level 2 Shift or ⇮ Level 3 Shift in conjunction with a main keypad key.



Some X11 keyboard maps furthermore define (as an optional addendum) a compose key which begins key sequences (of multiple key chords) that map to such characters. In the conventional X11 composition set, as documented by David Monniaux years ago, this character is the sequence Compose M U or the sequence Compose / U.



Consult your VT and X11 keyboard maps for information about what chord is mapped, if any. Check your configuration for whether you have enabled the compose key option in X11.



Examples:



The ch, de, it, nl, and no virtual terminal keyboard maps in FreeBSD provide this character as the chord ⇮ Level 3 Shift+B07 (M):



% sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/de.kbd                                                         /usr/share/vt/keymaps [pts/4.10009.1]
# alt
# scan cntrl alt alt cntrl lock
# code base shift cntrl shift alt shift cntrl shift state
# ------------------------------------------------------------------
050 'm' 'M' cr cr 0xb5 0xb5 cr cr C
%


But other maps either do not have it or define a different chord. In the fr keyboard map it is ⇧ Level 2 Shift+C12 (EUROPE1):



% sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/fr.kbd                                                         /usr/share/vt/keymaps [pts/4.10011.1]
# alt
# scan cntrl alt alt cntrl lock
# code base shift cntrl shift alt shift cntrl shift state
# ------------------------------------------------------------------
043 '*' 0xb5 nop nop '#' '~' nop nop O
%


And it is not mapped in the uk keyboard map at all.



Other methods



Other methods are specific to application input handling libraries or to particular terminal emulators, whereas input methods and X11/VT keyboard maps are not application-specific.



Some terminal emulators provide other ways of entering characters, by their Unicode code points. Readline can of course be configured to map input sequences to this character, as also can ZLE. And you have already mentioned VIM in the question.



Further reading




  • Jonathan de Boyne Pollard (2018). "terminal resources". nosh Guide. Softwares.

  • Jonathan de Boyne Pollard (2018). Typing the motto of Vietnam on an ISO 9995-3 keyboard. nosh toolset. Softwares.

  • Jonathan de Boyne Pollard (2018). Japanese input methods in nosh user-space virtual terminals. nosh toolset. Softwares.

  • Where are default compose-key bindings stored?

  • Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487245%2fis-it-possible-to-type-%25ce%25bc-on-the-bash-command-line-without-copying-and-pasting%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    8
    down vote













    Yes, there are at least this four (five?) ways:





    1. AltGr

      Make your keyboard layout English (international AltGr dead keys).

      Then the right Alt key is the AltGr key. Pressing AltGr-m will generate a µ. Many other keys also generate other characters: AltGr-s for ß, and Shift-AltGr-s for §.



      There is a separate keyboard layout for the console (the true consoles at AltCtrlF1 up to F6) and one for the GUI in X. Changing either depends on your distro (CentOS, Fedora, Debian, etc.) and Display manager (gnome, kde, xfce, etc.). For example, installing xfce4-xkb-plugin will allow a button on a panel to configure the keyboard and switch between several keyboard layouts for X in XFCE.




    2. Compose

      Make some key the Compose key. Then, presing Compose, releasing it, pressing /, releasing it, and then u will generate a µ.



      Defining a Compose key is usually done with xkb or with a keyboard layout applet.

      For example, in Gnome usually available at Region & Language section, or maybe, Switch Keyboard Layout Easily.



    3. Unicode

      There is a generic way to type any Unicode character (if your console supports it). Yes any codepoint of the 1,111,998 possible characters (visible if your font(s) could draw them). Press, as one chord (at the same time) ShiftCtrlu, release them (Probably, an underlined u̲ will appear), then type b5 which is the Unicode codepoint (always in Hex) for the character. And to end, type space or enter (at least).



    4. Readline

      In a bash prompt (as you tagged the question) is possible to use readline to generate a µ (mu).



       bind '"eu": "µ"'


      Or add the line:



       "eu": "µ"


      to ~/.inputrc, read it with Alt-x Alt-r or start a new bash shell (execute bash) and when you type:



      Alt-u



      An µ will appear.



    5. Input method

      Probably too much for a short answer like this.







    share|improve this answer























    • Method 3 unicode, does not work for me.
      – ctrl-alt-delor
      4 hours ago










    • Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
      – Isaac
      4 hours ago










    • I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
      – 神秘德里克
      3 hours ago










    • No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
      – Isaac
      3 hours ago












    • Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      35 mins ago















    up vote
    8
    down vote













    Yes, there are at least this four (five?) ways:





    1. AltGr

      Make your keyboard layout English (international AltGr dead keys).

      Then the right Alt key is the AltGr key. Pressing AltGr-m will generate a µ. Many other keys also generate other characters: AltGr-s for ß, and Shift-AltGr-s for §.



      There is a separate keyboard layout for the console (the true consoles at AltCtrlF1 up to F6) and one for the GUI in X. Changing either depends on your distro (CentOS, Fedora, Debian, etc.) and Display manager (gnome, kde, xfce, etc.). For example, installing xfce4-xkb-plugin will allow a button on a panel to configure the keyboard and switch between several keyboard layouts for X in XFCE.




    2. Compose

      Make some key the Compose key. Then, presing Compose, releasing it, pressing /, releasing it, and then u will generate a µ.



      Defining a Compose key is usually done with xkb or with a keyboard layout applet.

      For example, in Gnome usually available at Region & Language section, or maybe, Switch Keyboard Layout Easily.



    3. Unicode

      There is a generic way to type any Unicode character (if your console supports it). Yes any codepoint of the 1,111,998 possible characters (visible if your font(s) could draw them). Press, as one chord (at the same time) ShiftCtrlu, release them (Probably, an underlined u̲ will appear), then type b5 which is the Unicode codepoint (always in Hex) for the character. And to end, type space or enter (at least).



    4. Readline

      In a bash prompt (as you tagged the question) is possible to use readline to generate a µ (mu).



       bind '"eu": "µ"'


      Or add the line:



       "eu": "µ"


      to ~/.inputrc, read it with Alt-x Alt-r or start a new bash shell (execute bash) and when you type:



      Alt-u



      An µ will appear.



    5. Input method

      Probably too much for a short answer like this.







    share|improve this answer























    • Method 3 unicode, does not work for me.
      – ctrl-alt-delor
      4 hours ago










    • Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
      – Isaac
      4 hours ago










    • I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
      – 神秘德里克
      3 hours ago










    • No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
      – Isaac
      3 hours ago












    • Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      35 mins ago













    up vote
    8
    down vote










    up vote
    8
    down vote









    Yes, there are at least this four (five?) ways:





    1. AltGr

      Make your keyboard layout English (international AltGr dead keys).

      Then the right Alt key is the AltGr key. Pressing AltGr-m will generate a µ. Many other keys also generate other characters: AltGr-s for ß, and Shift-AltGr-s for §.



      There is a separate keyboard layout for the console (the true consoles at AltCtrlF1 up to F6) and one for the GUI in X. Changing either depends on your distro (CentOS, Fedora, Debian, etc.) and Display manager (gnome, kde, xfce, etc.). For example, installing xfce4-xkb-plugin will allow a button on a panel to configure the keyboard and switch between several keyboard layouts for X in XFCE.




    2. Compose

      Make some key the Compose key. Then, presing Compose, releasing it, pressing /, releasing it, and then u will generate a µ.



      Defining a Compose key is usually done with xkb or with a keyboard layout applet.

      For example, in Gnome usually available at Region & Language section, or maybe, Switch Keyboard Layout Easily.



    3. Unicode

      There is a generic way to type any Unicode character (if your console supports it). Yes any codepoint of the 1,111,998 possible characters (visible if your font(s) could draw them). Press, as one chord (at the same time) ShiftCtrlu, release them (Probably, an underlined u̲ will appear), then type b5 which is the Unicode codepoint (always in Hex) for the character. And to end, type space or enter (at least).



    4. Readline

      In a bash prompt (as you tagged the question) is possible to use readline to generate a µ (mu).



       bind '"eu": "µ"'


      Or add the line:



       "eu": "µ"


      to ~/.inputrc, read it with Alt-x Alt-r or start a new bash shell (execute bash) and when you type:



      Alt-u



      An µ will appear.



    5. Input method

      Probably too much for a short answer like this.







    share|improve this answer














    Yes, there are at least this four (five?) ways:





    1. AltGr

      Make your keyboard layout English (international AltGr dead keys).

      Then the right Alt key is the AltGr key. Pressing AltGr-m will generate a µ. Many other keys also generate other characters: AltGr-s for ß, and Shift-AltGr-s for §.



      There is a separate keyboard layout for the console (the true consoles at AltCtrlF1 up to F6) and one for the GUI in X. Changing either depends on your distro (CentOS, Fedora, Debian, etc.) and Display manager (gnome, kde, xfce, etc.). For example, installing xfce4-xkb-plugin will allow a button on a panel to configure the keyboard and switch between several keyboard layouts for X in XFCE.




    2. Compose

      Make some key the Compose key. Then, presing Compose, releasing it, pressing /, releasing it, and then u will generate a µ.



      Defining a Compose key is usually done with xkb or with a keyboard layout applet.

      For example, in Gnome usually available at Region & Language section, or maybe, Switch Keyboard Layout Easily.



    3. Unicode

      There is a generic way to type any Unicode character (if your console supports it). Yes any codepoint of the 1,111,998 possible characters (visible if your font(s) could draw them). Press, as one chord (at the same time) ShiftCtrlu, release them (Probably, an underlined u̲ will appear), then type b5 which is the Unicode codepoint (always in Hex) for the character. And to end, type space or enter (at least).



    4. Readline

      In a bash prompt (as you tagged the question) is possible to use readline to generate a µ (mu).



       bind '"eu": "µ"'


      Or add the line:



       "eu": "µ"


      to ~/.inputrc, read it with Alt-x Alt-r or start a new bash shell (execute bash) and when you type:



      Alt-u



      An µ will appear.



    5. Input method

      Probably too much for a short answer like this.








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 45 mins ago

























    answered 6 hours ago









    Isaac

    10.9k11447




    10.9k11447












    • Method 3 unicode, does not work for me.
      – ctrl-alt-delor
      4 hours ago










    • Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
      – Isaac
      4 hours ago










    • I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
      – 神秘德里克
      3 hours ago










    • No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
      – Isaac
      3 hours ago












    • Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      35 mins ago


















    • Method 3 unicode, does not work for me.
      – ctrl-alt-delor
      4 hours ago










    • Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
      – Isaac
      4 hours ago










    • I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
      – 神秘德里克
      3 hours ago










    • No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
      – Isaac
      3 hours ago












    • Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      35 mins ago
















    Method 3 unicode, does not work for me.
    – ctrl-alt-delor
    4 hours ago




    Method 3 unicode, does not work for me.
    – ctrl-alt-delor
    4 hours ago












    Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
    – Isaac
    4 hours ago




    Older debian didn't have this option. Which distro and which console? konsole, gnome-terminal, terminator, etc ? @ctrl-alt-delor
    – Isaac
    4 hours ago












    I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
    – 神秘德里克
    3 hours ago




    I just want to know why do method 3 work. It doesn't seem to be related to X's keyboard layout or Xcb.
    – 神秘德里克
    3 hours ago












    No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
    – Isaac
    3 hours ago






    No it is not related to keyboard, xkb, input method, or desktop shortcut. It is an option that some (many, it seems now) programs provide/support, something like using some specific set of colors to match TTY colors. Not long ago some terminals didn't have it, yet. Most do now. @神秘德里克
    – Isaac
    3 hours ago














    Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    35 mins ago




    Very good answer in theory, but every glyph you use here is µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    35 mins ago












    up vote
    4
    down vote













    If you enable your compose key, you can print this symbol with the compose/u sequence, like so: µ



    The full range of symbols available, and their respective key sequences, is documented on the Ubuntu wiki.






    share|improve this answer























    • Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      33 mins ago















    up vote
    4
    down vote













    If you enable your compose key, you can print this symbol with the compose/u sequence, like so: µ



    The full range of symbols available, and their respective key sequences, is documented on the Ubuntu wiki.






    share|improve this answer























    • Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      33 mins ago













    up vote
    4
    down vote










    up vote
    4
    down vote









    If you enable your compose key, you can print this symbol with the compose/u sequence, like so: µ



    The full range of symbols available, and their respective key sequences, is documented on the Ubuntu wiki.






    share|improve this answer














    If you enable your compose key, you can print this symbol with the compose/u sequence, like so: µ



    The full range of symbols available, and their respective key sequences, is documented on the Ubuntu wiki.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 4 hours ago









    ctrl-alt-delor

    10.4k41955




    10.4k41955










    answered 11 hours ago









    jasonwryan

    48.9k14134184




    48.9k14134184












    • Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      33 mins ago


















    • Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
      – Sparhawk
      33 mins ago
















    Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    33 mins ago




    Your answer gives µ (micro, U+00B5), not what was asked in the question, μ (mu, U+03BC).
    – Sparhawk
    33 mins ago










    up vote
    2
    down vote













    Using input methods



    CIN-file input methods are usable in X11 and in my user-space virtual terminals. One of the commonly-collected ones, greek.cin, has this character. One simply enters m (lower case) and it is the only conversion.



    Using the ISO 9995 common secondary group



    Your X11 keyboard map or your virtual terminal might not implement this, but if it does there is a standard country-independent key sequence (of two key chords) for this character defined by ISO/IEC 9995: ⇨ Group 2 Select B07





    • ⇨ Group 2 Select is conventionally the chord ⇧ Level 2 Shift+⇮ Level 3 Shift because the USB HID specification and others lack a code for a proper ⇨ Group 2 Select key and such a key does not exist on most keyboards.


    • ⇮ Level 3 Shift is usually engraved ⌥ Option or ⇮ AltGr on 105/106/107/109-key keyboards or ⎇ Alt on 104-key keyboards.

    • B07 is the standard ISO/IEC 9995 notation for a physical position on row "B" and column "07", and the key there is usually engraved M.


    Where implemented, this so-called common secondary group of ISO/IEC 9995 is not supposed to vary by the selected country's layout, and is always available.



    Using whatever chord is defined in your keyboard layout



    The specifics of keyboard layouts are beyond the scope of this answer, and there are plenty of answers here dealing with them.



    Précis:



    There is a keyboard layout for X11 applications, there is a possibly related keyboard layout for kernel virtual terminals (if your operating system has such), and there is are keyboard layouts for user-space virtual terminals (if you are using such). Layouts generally provide such characters as a chord with ⇧ Level 2 Shift or ⇮ Level 3 Shift in conjunction with a main keypad key.



    Some X11 keyboard maps furthermore define (as an optional addendum) a compose key which begins key sequences (of multiple key chords) that map to such characters. In the conventional X11 composition set, as documented by David Monniaux years ago, this character is the sequence Compose M U or the sequence Compose / U.



    Consult your VT and X11 keyboard maps for information about what chord is mapped, if any. Check your configuration for whether you have enabled the compose key option in X11.



    Examples:



    The ch, de, it, nl, and no virtual terminal keyboard maps in FreeBSD provide this character as the chord ⇮ Level 3 Shift+B07 (M):



    % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/de.kbd                                                         /usr/share/vt/keymaps [pts/4.10009.1]
    # alt
    # scan cntrl alt alt cntrl lock
    # code base shift cntrl shift alt shift cntrl shift state
    # ------------------------------------------------------------------
    050 'm' 'M' cr cr 0xb5 0xb5 cr cr C
    %


    But other maps either do not have it or define a different chord. In the fr keyboard map it is ⇧ Level 2 Shift+C12 (EUROPE1):



    % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/fr.kbd                                                         /usr/share/vt/keymaps [pts/4.10011.1]
    # alt
    # scan cntrl alt alt cntrl lock
    # code base shift cntrl shift alt shift cntrl shift state
    # ------------------------------------------------------------------
    043 '*' 0xb5 nop nop '#' '~' nop nop O
    %


    And it is not mapped in the uk keyboard map at all.



    Other methods



    Other methods are specific to application input handling libraries or to particular terminal emulators, whereas input methods and X11/VT keyboard maps are not application-specific.



    Some terminal emulators provide other ways of entering characters, by their Unicode code points. Readline can of course be configured to map input sequences to this character, as also can ZLE. And you have already mentioned VIM in the question.



    Further reading




    • Jonathan de Boyne Pollard (2018). "terminal resources". nosh Guide. Softwares.

    • Jonathan de Boyne Pollard (2018). Typing the motto of Vietnam on an ISO 9995-3 keyboard. nosh toolset. Softwares.

    • Jonathan de Boyne Pollard (2018). Japanese input methods in nosh user-space virtual terminals. nosh toolset. Softwares.

    • Where are default compose-key bindings stored?

    • Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?






    share|improve this answer

























      up vote
      2
      down vote













      Using input methods



      CIN-file input methods are usable in X11 and in my user-space virtual terminals. One of the commonly-collected ones, greek.cin, has this character. One simply enters m (lower case) and it is the only conversion.



      Using the ISO 9995 common secondary group



      Your X11 keyboard map or your virtual terminal might not implement this, but if it does there is a standard country-independent key sequence (of two key chords) for this character defined by ISO/IEC 9995: ⇨ Group 2 Select B07





      • ⇨ Group 2 Select is conventionally the chord ⇧ Level 2 Shift+⇮ Level 3 Shift because the USB HID specification and others lack a code for a proper ⇨ Group 2 Select key and such a key does not exist on most keyboards.


      • ⇮ Level 3 Shift is usually engraved ⌥ Option or ⇮ AltGr on 105/106/107/109-key keyboards or ⎇ Alt on 104-key keyboards.

      • B07 is the standard ISO/IEC 9995 notation for a physical position on row "B" and column "07", and the key there is usually engraved M.


      Where implemented, this so-called common secondary group of ISO/IEC 9995 is not supposed to vary by the selected country's layout, and is always available.



      Using whatever chord is defined in your keyboard layout



      The specifics of keyboard layouts are beyond the scope of this answer, and there are plenty of answers here dealing with them.



      Précis:



      There is a keyboard layout for X11 applications, there is a possibly related keyboard layout for kernel virtual terminals (if your operating system has such), and there is are keyboard layouts for user-space virtual terminals (if you are using such). Layouts generally provide such characters as a chord with ⇧ Level 2 Shift or ⇮ Level 3 Shift in conjunction with a main keypad key.



      Some X11 keyboard maps furthermore define (as an optional addendum) a compose key which begins key sequences (of multiple key chords) that map to such characters. In the conventional X11 composition set, as documented by David Monniaux years ago, this character is the sequence Compose M U or the sequence Compose / U.



      Consult your VT and X11 keyboard maps for information about what chord is mapped, if any. Check your configuration for whether you have enabled the compose key option in X11.



      Examples:



      The ch, de, it, nl, and no virtual terminal keyboard maps in FreeBSD provide this character as the chord ⇮ Level 3 Shift+B07 (M):



      % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/de.kbd                                                         /usr/share/vt/keymaps [pts/4.10009.1]
      # alt
      # scan cntrl alt alt cntrl lock
      # code base shift cntrl shift alt shift cntrl shift state
      # ------------------------------------------------------------------
      050 'm' 'M' cr cr 0xb5 0xb5 cr cr C
      %


      But other maps either do not have it or define a different chord. In the fr keyboard map it is ⇧ Level 2 Shift+C12 (EUROPE1):



      % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/fr.kbd                                                         /usr/share/vt/keymaps [pts/4.10011.1]
      # alt
      # scan cntrl alt alt cntrl lock
      # code base shift cntrl shift alt shift cntrl shift state
      # ------------------------------------------------------------------
      043 '*' 0xb5 nop nop '#' '~' nop nop O
      %


      And it is not mapped in the uk keyboard map at all.



      Other methods



      Other methods are specific to application input handling libraries or to particular terminal emulators, whereas input methods and X11/VT keyboard maps are not application-specific.



      Some terminal emulators provide other ways of entering characters, by their Unicode code points. Readline can of course be configured to map input sequences to this character, as also can ZLE. And you have already mentioned VIM in the question.



      Further reading




      • Jonathan de Boyne Pollard (2018). "terminal resources". nosh Guide. Softwares.

      • Jonathan de Boyne Pollard (2018). Typing the motto of Vietnam on an ISO 9995-3 keyboard. nosh toolset. Softwares.

      • Jonathan de Boyne Pollard (2018). Japanese input methods in nosh user-space virtual terminals. nosh toolset. Softwares.

      • Where are default compose-key bindings stored?

      • Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?






      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        Using input methods



        CIN-file input methods are usable in X11 and in my user-space virtual terminals. One of the commonly-collected ones, greek.cin, has this character. One simply enters m (lower case) and it is the only conversion.



        Using the ISO 9995 common secondary group



        Your X11 keyboard map or your virtual terminal might not implement this, but if it does there is a standard country-independent key sequence (of two key chords) for this character defined by ISO/IEC 9995: ⇨ Group 2 Select B07





        • ⇨ Group 2 Select is conventionally the chord ⇧ Level 2 Shift+⇮ Level 3 Shift because the USB HID specification and others lack a code for a proper ⇨ Group 2 Select key and such a key does not exist on most keyboards.


        • ⇮ Level 3 Shift is usually engraved ⌥ Option or ⇮ AltGr on 105/106/107/109-key keyboards or ⎇ Alt on 104-key keyboards.

        • B07 is the standard ISO/IEC 9995 notation for a physical position on row "B" and column "07", and the key there is usually engraved M.


        Where implemented, this so-called common secondary group of ISO/IEC 9995 is not supposed to vary by the selected country's layout, and is always available.



        Using whatever chord is defined in your keyboard layout



        The specifics of keyboard layouts are beyond the scope of this answer, and there are plenty of answers here dealing with them.



        Précis:



        There is a keyboard layout for X11 applications, there is a possibly related keyboard layout for kernel virtual terminals (if your operating system has such), and there is are keyboard layouts for user-space virtual terminals (if you are using such). Layouts generally provide such characters as a chord with ⇧ Level 2 Shift or ⇮ Level 3 Shift in conjunction with a main keypad key.



        Some X11 keyboard maps furthermore define (as an optional addendum) a compose key which begins key sequences (of multiple key chords) that map to such characters. In the conventional X11 composition set, as documented by David Monniaux years ago, this character is the sequence Compose M U or the sequence Compose / U.



        Consult your VT and X11 keyboard maps for information about what chord is mapped, if any. Check your configuration for whether you have enabled the compose key option in X11.



        Examples:



        The ch, de, it, nl, and no virtual terminal keyboard maps in FreeBSD provide this character as the chord ⇮ Level 3 Shift+B07 (M):



        % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/de.kbd                                                         /usr/share/vt/keymaps [pts/4.10009.1]
        # alt
        # scan cntrl alt alt cntrl lock
        # code base shift cntrl shift alt shift cntrl shift state
        # ------------------------------------------------------------------
        050 'm' 'M' cr cr 0xb5 0xb5 cr cr C
        %


        But other maps either do not have it or define a different chord. In the fr keyboard map it is ⇧ Level 2 Shift+C12 (EUROPE1):



        % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/fr.kbd                                                         /usr/share/vt/keymaps [pts/4.10011.1]
        # alt
        # scan cntrl alt alt cntrl lock
        # code base shift cntrl shift alt shift cntrl shift state
        # ------------------------------------------------------------------
        043 '*' 0xb5 nop nop '#' '~' nop nop O
        %


        And it is not mapped in the uk keyboard map at all.



        Other methods



        Other methods are specific to application input handling libraries or to particular terminal emulators, whereas input methods and X11/VT keyboard maps are not application-specific.



        Some terminal emulators provide other ways of entering characters, by their Unicode code points. Readline can of course be configured to map input sequences to this character, as also can ZLE. And you have already mentioned VIM in the question.



        Further reading




        • Jonathan de Boyne Pollard (2018). "terminal resources". nosh Guide. Softwares.

        • Jonathan de Boyne Pollard (2018). Typing the motto of Vietnam on an ISO 9995-3 keyboard. nosh toolset. Softwares.

        • Jonathan de Boyne Pollard (2018). Japanese input methods in nosh user-space virtual terminals. nosh toolset. Softwares.

        • Where are default compose-key bindings stored?

        • Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?






        share|improve this answer












        Using input methods



        CIN-file input methods are usable in X11 and in my user-space virtual terminals. One of the commonly-collected ones, greek.cin, has this character. One simply enters m (lower case) and it is the only conversion.



        Using the ISO 9995 common secondary group



        Your X11 keyboard map or your virtual terminal might not implement this, but if it does there is a standard country-independent key sequence (of two key chords) for this character defined by ISO/IEC 9995: ⇨ Group 2 Select B07





        • ⇨ Group 2 Select is conventionally the chord ⇧ Level 2 Shift+⇮ Level 3 Shift because the USB HID specification and others lack a code for a proper ⇨ Group 2 Select key and such a key does not exist on most keyboards.


        • ⇮ Level 3 Shift is usually engraved ⌥ Option or ⇮ AltGr on 105/106/107/109-key keyboards or ⎇ Alt on 104-key keyboards.

        • B07 is the standard ISO/IEC 9995 notation for a physical position on row "B" and column "07", and the key there is usually engraved M.


        Where implemented, this so-called common secondary group of ISO/IEC 9995 is not supposed to vary by the selected country's layout, and is always available.



        Using whatever chord is defined in your keyboard layout



        The specifics of keyboard layouts are beyond the scope of this answer, and there are plenty of answers here dealing with them.



        Précis:



        There is a keyboard layout for X11 applications, there is a possibly related keyboard layout for kernel virtual terminals (if your operating system has such), and there is are keyboard layouts for user-space virtual terminals (if you are using such). Layouts generally provide such characters as a chord with ⇧ Level 2 Shift or ⇮ Level 3 Shift in conjunction with a main keypad key.



        Some X11 keyboard maps furthermore define (as an optional addendum) a compose key which begins key sequences (of multiple key chords) that map to such characters. In the conventional X11 composition set, as documented by David Monniaux years ago, this character is the sequence Compose M U or the sequence Compose / U.



        Consult your VT and X11 keyboard maps for information about what chord is mapped, if any. Check your configuration for whether you have enabled the compose key option in X11.



        Examples:



        The ch, de, it, nl, and no virtual terminal keyboard maps in FreeBSD provide this character as the chord ⇮ Level 3 Shift+B07 (M):



        % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/de.kbd                                                         /usr/share/vt/keymaps [pts/4.10009.1]
        # alt
        # scan cntrl alt alt cntrl lock
        # code base shift cntrl shift alt shift cntrl shift state
        # ------------------------------------------------------------------
        050 'm' 'M' cr cr 0xb5 0xb5 cr cr C
        %


        But other maps either do not have it or define a different chord. In the fr keyboard map it is ⇧ Level 2 Shift+C12 (EUROPE1):



        % sed -n -e '2,5p;/0xb5/p' /usr/share/vt/keymaps/fr.kbd                                                         /usr/share/vt/keymaps [pts/4.10011.1]
        # alt
        # scan cntrl alt alt cntrl lock
        # code base shift cntrl shift alt shift cntrl shift state
        # ------------------------------------------------------------------
        043 '*' 0xb5 nop nop '#' '~' nop nop O
        %


        And it is not mapped in the uk keyboard map at all.



        Other methods



        Other methods are specific to application input handling libraries or to particular terminal emulators, whereas input methods and X11/VT keyboard maps are not application-specific.



        Some terminal emulators provide other ways of entering characters, by their Unicode code points. Readline can of course be configured to map input sequences to this character, as also can ZLE. And you have already mentioned VIM in the question.



        Further reading




        • Jonathan de Boyne Pollard (2018). "terminal resources". nosh Guide. Softwares.

        • Jonathan de Boyne Pollard (2018). Typing the motto of Vietnam on an ISO 9995-3 keyboard. nosh toolset. Softwares.

        • Jonathan de Boyne Pollard (2018). Japanese input methods in nosh user-space virtual terminals. nosh toolset. Softwares.

        • Where are default compose-key bindings stored?

        • Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        JdeBP

        32.6k468152




        32.6k468152






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487245%2fis-it-possible-to-type-%25ce%25bc-on-the-bash-command-line-without-copying-and-pasting%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            What visual should I use to simply compare current year value vs last year in Power BI desktop

            How to ignore python UserWarning in pytest?

            Alexandru Averescu