What setting controls moving the cursor on the command line?Shell: how to go to the beginning of line when you are inside a screen?Moving through history of commands on command line?bash command line editing (Emacs shortcuts)What is the meaning of (^| )ABC( |$) as an extended REGEX ?how to move by a word in command line in tcsh?What are the keyboard shortcuts for the command-line?How to copy text from command line to clipboard without using the mouse?Do all different Linux distributions have the same command lines?Command-line diff toolWhat is the theoretical upper limit of commands a user can execute in one line?

SQL counting distinct over partition

How to communicate to my GM that not being allowed to use stealth isn't fun for me?

Why are trash cans referred to as "zafacón" in Puerto Rico?

Is a lack of character descriptions a problem?

Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?

1980s live-action movie where individually-coloured nations on clouds fight

When would it be advantageous not apply Training Ground's cost reduction?

You have (3^2 + 2^3 + 2^2) Guesses Left. Figure out the Last one

Fixing obscure 8080 emulator bug?

Active low-pass filters --- good to what frequencies?

What is the maximum number of net attacks that one can make in a round?

Is using haveibeenpwned to validate password strength rational?

What makes Ada the language of choice for the ISS's safety-critical systems?

Bent Peugeot Carbolite 103 Frame

Why doesn't Adrian Toomes give up Spider-Man's identity?

Thread Pool C++ Implementation

Implement Own Vector Class in C++

How to safely destroy (a large quantity of) valid checks?

Can Rydberg constant be in joules?

I have a problem assistant manager, but I can't fire him

Arriving at the same result with the opposite hypotheses

How do governments keep track of their issued currency?

English word for "product of tinkering"

Soft question: Examples where lack of mathematical rigour cause security breaches?



What setting controls moving the cursor on the command line?


Shell: how to go to the beginning of line when you are inside a screen?Moving through history of commands on command line?bash command line editing (Emacs shortcuts)What is the meaning of (^| )ABC( |$) as an extended REGEX ?how to move by a word in command line in tcsh?What are the keyboard shortcuts for the command-line?How to copy text from command line to clipboard without using the mouse?Do all different Linux distributions have the same command lines?Command-line diff toolWhat is the theoretical upper limit of commands a user can execute in one line?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?










share|improve this question






























    1















    On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?










    share|improve this question


























      1












      1








      1








      On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?










      share|improve this question
















      On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?







      linux command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 8 hours ago









      Rui F Ribeiro

      42.8k1688148




      42.8k1688148










      asked 8 hours ago









      ClassifiedClassified

      20858




      20858




















          2 Answers
          2






          active

          oldest

          votes


















          3














          It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).



          Also it depends on shell itself.



          E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs (normally it's a default one) or set -o vi



          You can find more information in your specific shell documentation.






          share|improve this answer
































            1














            tl;dr



            set -o emacs


            will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.




            The shell may not have any line editing capabilities, or may be in the vi editing mode (the only one specified by the standard).



            When not in emacs editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A, ^X, etc, "caret" notation.



            Many shells (like ksh or zsh) will determine the default editing mode (vi or emacs) based on the values of VISUAL and EDITOR environment variables (in this order of precedence, and also handling variants like vim, elvis, xemacs, etc).



            This was broken (very annoyingly!) in mksh, but it's also still the case in other pdksh-derived shells.



            Other shells like bash or tcsh default to the emacs editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi in ~/.inputrc for the readline library used by bash).






            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',
              autoActivateHeartbeat: false,
              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%2f523146%2fwhat-setting-controls-moving-the-cursor-on-the-command-line%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).



              Also it depends on shell itself.



              E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs (normally it's a default one) or set -o vi



              You can find more information in your specific shell documentation.






              share|improve this answer





























                3














                It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).



                Also it depends on shell itself.



                E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs (normally it's a default one) or set -o vi



                You can find more information in your specific shell documentation.






                share|improve this answer



























                  3












                  3








                  3







                  It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).



                  Also it depends on shell itself.



                  E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs (normally it's a default one) or set -o vi



                  You can find more information in your specific shell documentation.






                  share|improve this answer















                  It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).



                  Also it depends on shell itself.



                  E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs (normally it's a default one) or set -o vi



                  You can find more information in your specific shell documentation.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 7 hours ago

























                  answered 7 hours ago









                  rushrush

                  20k46697




                  20k46697























                      1














                      tl;dr



                      set -o emacs


                      will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.




                      The shell may not have any line editing capabilities, or may be in the vi editing mode (the only one specified by the standard).



                      When not in emacs editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A, ^X, etc, "caret" notation.



                      Many shells (like ksh or zsh) will determine the default editing mode (vi or emacs) based on the values of VISUAL and EDITOR environment variables (in this order of precedence, and also handling variants like vim, elvis, xemacs, etc).



                      This was broken (very annoyingly!) in mksh, but it's also still the case in other pdksh-derived shells.



                      Other shells like bash or tcsh default to the emacs editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi in ~/.inputrc for the readline library used by bash).






                      share|improve this answer





























                        1














                        tl;dr



                        set -o emacs


                        will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.




                        The shell may not have any line editing capabilities, or may be in the vi editing mode (the only one specified by the standard).



                        When not in emacs editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A, ^X, etc, "caret" notation.



                        Many shells (like ksh or zsh) will determine the default editing mode (vi or emacs) based on the values of VISUAL and EDITOR environment variables (in this order of precedence, and also handling variants like vim, elvis, xemacs, etc).



                        This was broken (very annoyingly!) in mksh, but it's also still the case in other pdksh-derived shells.



                        Other shells like bash or tcsh default to the emacs editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi in ~/.inputrc for the readline library used by bash).






                        share|improve this answer



























                          1












                          1








                          1







                          tl;dr



                          set -o emacs


                          will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.




                          The shell may not have any line editing capabilities, or may be in the vi editing mode (the only one specified by the standard).



                          When not in emacs editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A, ^X, etc, "caret" notation.



                          Many shells (like ksh or zsh) will determine the default editing mode (vi or emacs) based on the values of VISUAL and EDITOR environment variables (in this order of precedence, and also handling variants like vim, elvis, xemacs, etc).



                          This was broken (very annoyingly!) in mksh, but it's also still the case in other pdksh-derived shells.



                          Other shells like bash or tcsh default to the emacs editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi in ~/.inputrc for the readline library used by bash).






                          share|improve this answer















                          tl;dr



                          set -o emacs


                          will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.




                          The shell may not have any line editing capabilities, or may be in the vi editing mode (the only one specified by the standard).



                          When not in emacs editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A, ^X, etc, "caret" notation.



                          Many shells (like ksh or zsh) will determine the default editing mode (vi or emacs) based on the values of VISUAL and EDITOR environment variables (in this order of precedence, and also handling variants like vim, elvis, xemacs, etc).



                          This was broken (very annoyingly!) in mksh, but it's also still the case in other pdksh-derived shells.



                          Other shells like bash or tcsh default to the emacs editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi in ~/.inputrc for the readline library used by bash).







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 5 hours ago

























                          answered 6 hours ago









                          mosvymosvy

                          12.8k11543




                          12.8k11543



























                              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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523146%2fwhat-setting-controls-moving-the-cursor-on-the-command-line%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

                              Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                              Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                              199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單