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?

What is the purpose of the goat for Azazel, as opposed to conventional offerings?

Colloquialism for “see you later”

How do I prevent employees from either switching to competitors or opening their own business?

Using "subway" as name for London Underground?

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

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

Are there any important biographies of nobodies?

Jargon request: "Canonical Form" of a word

Why we don’t make use of the t-distribution for constructing a confidence interval for a proportion?

How to hide an urban landmark?

How can I get an unreasonable manager to approve time off?

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

Arriving at the same result with the opposite hypotheses

English word for "product of tinkering"

Is this use of the expression "long past" correct?

Cascading Switches. Will it affect performance?

How is John Wick 3 a 15 certificate?

Which languages would be most useful in Europe at the end of the 19th century?

Is White controlling this game?

How can I end combat quickly when the outcome is inevitable?

Is a lack of character descriptions a problem?

How can I make some of my chapters "come to life"?

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

Is it possible to have the age of the universe be unknown?



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

                              ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

                              Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

                              19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу