Reverse-i-search doesn't continue












5















I wanted to use the reverse-i-search as usual by pressing Ctrl+R to search my last ssh command. When I tried, I was only able to write "ss" but not continue with "h". Additionally when I hit Ctrl+H again, nothing happens. Does anybody have an explanation?



I am using Ubuntu 12.04 and in the pasttime this worked fine (on my other computer with the same os)










share|improve this question





























    5















    I wanted to use the reverse-i-search as usual by pressing Ctrl+R to search my last ssh command. When I tried, I was only able to write "ss" but not continue with "h". Additionally when I hit Ctrl+H again, nothing happens. Does anybody have an explanation?



    I am using Ubuntu 12.04 and in the pasttime this worked fine (on my other computer with the same os)










    share|improve this question



























      5












      5








      5


      1






      I wanted to use the reverse-i-search as usual by pressing Ctrl+R to search my last ssh command. When I tried, I was only able to write "ss" but not continue with "h". Additionally when I hit Ctrl+H again, nothing happens. Does anybody have an explanation?



      I am using Ubuntu 12.04 and in the pasttime this worked fine (on my other computer with the same os)










      share|improve this question
















      I wanted to use the reverse-i-search as usual by pressing Ctrl+R to search my last ssh command. When I tried, I was only able to write "ss" but not continue with "h". Additionally when I hit Ctrl+H again, nothing happens. Does anybody have an explanation?



      I am using Ubuntu 12.04 and in the pasttime this worked fine (on my other computer with the same os)







      12.04 shortcut-keys ssh search






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 28 '13 at 9:04







      aldorado

















      asked Oct 27 '13 at 18:49









      aldoradoaldorado

      2851719




      2851719






















          3 Answers
          3






          active

          oldest

          votes


















          4














          Try like this:




          [...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time



          Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.




          Source: Navigating Bash History with Ctrl+R.






          share|improve this answer
























          • I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

            – aldorado
            Oct 27 '13 at 19:01











          • @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

            – Radu Rădeanu
            Oct 27 '13 at 19:07



















          4














          From: https://help.ubuntu.com/community/UsingTheTerminal




          An extremely handy tool :: Incremental history searching




          in terminal enter:



          gedit  ~/.inputrc


          then copy/paste and save:



          "e[A": history-search-backward
          "e[B": history-search-forward
          "e[C": forward-char
          "e[D": backward-char


          FROM now on and many agree this is the most useful terminal tool saves you a lot of writing/memorizing... all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly. Say I want:



          for f in *.mid ; do timidity "$f"; done


          all I need to do is enter



          fo


          and hit upward arrow. Command will soon appear!






          share|improve this answer


























          • Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

            – aldorado
            Jan 17 '14 at 11:28






          • 1





            Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

            – Atharva Johri
            Jan 17 '14 at 12:15






          • 1





            Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

            – Atharva Johri
            Jan 17 '14 at 12:40



















          0














          Run this command in terminal. Use Ctrl+S to toggle forward when searching for commands in the terminal. For current session- add it to .bashrc to disable it permanently.



          stty -ixon

          ctrl+r -> reverse i search

          ctrl+s -> i search





          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f366865%2freverse-i-search-doesnt-continue%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









            4














            Try like this:




            [...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time



            Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.




            Source: Navigating Bash History with Ctrl+R.






            share|improve this answer
























            • I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

              – aldorado
              Oct 27 '13 at 19:01











            • @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

              – Radu Rădeanu
              Oct 27 '13 at 19:07
















            4














            Try like this:




            [...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time



            Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.




            Source: Navigating Bash History with Ctrl+R.






            share|improve this answer
























            • I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

              – aldorado
              Oct 27 '13 at 19:01











            • @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

              – Radu Rădeanu
              Oct 27 '13 at 19:07














            4












            4








            4







            Try like this:




            [...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time



            Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.




            Source: Navigating Bash History with Ctrl+R.






            share|improve this answer













            Try like this:




            [...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time



            Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.




            Source: Navigating Bash History with Ctrl+R.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 27 '13 at 18:55









            Radu RădeanuRadu Rădeanu

            119k35252328




            119k35252328













            • I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

              – aldorado
              Oct 27 '13 at 19:01











            • @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

              – Radu Rădeanu
              Oct 27 '13 at 19:07



















            • I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

              – aldorado
              Oct 27 '13 at 19:01











            • @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

              – Radu Rădeanu
              Oct 27 '13 at 19:07

















            I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

            – aldorado
            Oct 27 '13 at 19:01





            I tried again with other commands. Some work. So my explanation would be, that since I used the ssh command the last time, I deleted the terminal history. Question: Does the input prompt of ctrl r stop, if the character combination never occured before? meaning I could not write "h" because "ss" occured, but not "ssh"?

            – aldorado
            Oct 27 '13 at 19:01













            @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

            – Radu Rădeanu
            Oct 27 '13 at 19:07





            @aldorado You can try "ss" if this didn't ocured in the time, you will get the right command. If sh ocurred in this time, then press again Ctrl+R and type again "ss" and so on.

            – Radu Rădeanu
            Oct 27 '13 at 19:07













            4














            From: https://help.ubuntu.com/community/UsingTheTerminal




            An extremely handy tool :: Incremental history searching




            in terminal enter:



            gedit  ~/.inputrc


            then copy/paste and save:



            "e[A": history-search-backward
            "e[B": history-search-forward
            "e[C": forward-char
            "e[D": backward-char


            FROM now on and many agree this is the most useful terminal tool saves you a lot of writing/memorizing... all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly. Say I want:



            for f in *.mid ; do timidity "$f"; done


            all I need to do is enter



            fo


            and hit upward arrow. Command will soon appear!






            share|improve this answer


























            • Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

              – aldorado
              Jan 17 '14 at 11:28






            • 1





              Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

              – Atharva Johri
              Jan 17 '14 at 12:15






            • 1





              Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

              – Atharva Johri
              Jan 17 '14 at 12:40
















            4














            From: https://help.ubuntu.com/community/UsingTheTerminal




            An extremely handy tool :: Incremental history searching




            in terminal enter:



            gedit  ~/.inputrc


            then copy/paste and save:



            "e[A": history-search-backward
            "e[B": history-search-forward
            "e[C": forward-char
            "e[D": backward-char


            FROM now on and many agree this is the most useful terminal tool saves you a lot of writing/memorizing... all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly. Say I want:



            for f in *.mid ; do timidity "$f"; done


            all I need to do is enter



            fo


            and hit upward arrow. Command will soon appear!






            share|improve this answer


























            • Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

              – aldorado
              Jan 17 '14 at 11:28






            • 1





              Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

              – Atharva Johri
              Jan 17 '14 at 12:15






            • 1





              Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

              – Atharva Johri
              Jan 17 '14 at 12:40














            4












            4








            4







            From: https://help.ubuntu.com/community/UsingTheTerminal




            An extremely handy tool :: Incremental history searching




            in terminal enter:



            gedit  ~/.inputrc


            then copy/paste and save:



            "e[A": history-search-backward
            "e[B": history-search-forward
            "e[C": forward-char
            "e[D": backward-char


            FROM now on and many agree this is the most useful terminal tool saves you a lot of writing/memorizing... all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly. Say I want:



            for f in *.mid ; do timidity "$f"; done


            all I need to do is enter



            fo


            and hit upward arrow. Command will soon appear!






            share|improve this answer















            From: https://help.ubuntu.com/community/UsingTheTerminal




            An extremely handy tool :: Incremental history searching




            in terminal enter:



            gedit  ~/.inputrc


            then copy/paste and save:



            "e[A": history-search-backward
            "e[B": history-search-forward
            "e[C": forward-char
            "e[D": backward-char


            FROM now on and many agree this is the most useful terminal tool saves you a lot of writing/memorizing... all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly. Say I want:



            for f in *.mid ; do timidity "$f"; done


            all I need to do is enter



            fo


            and hit upward arrow. Command will soon appear!







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 16 '14 at 17:23









            Eric Carvalho

            42.2k17115147




            42.2k17115147










            answered Jan 16 '14 at 16:59









            Atharva JohriAtharva Johri

            1412




            1412













            • Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

              – aldorado
              Jan 17 '14 at 11:28






            • 1





              Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

              – Atharva Johri
              Jan 17 '14 at 12:15






            • 1





              Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

              – Atharva Johri
              Jan 17 '14 at 12:40



















            • Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

              – aldorado
              Jan 17 '14 at 11:28






            • 1





              Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

              – Atharva Johri
              Jan 17 '14 at 12:15






            • 1





              Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

              – Atharva Johri
              Jan 17 '14 at 12:40

















            Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

            – aldorado
            Jan 17 '14 at 11:28





            Nice link indeed! Can you explain what the single components of the commands "e[X" mean?

            – aldorado
            Jan 17 '14 at 11:28




            1




            1





            Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

            – Atharva Johri
            Jan 17 '14 at 12:15





            Hi.. they are keyboard key references. I don't know WHY they named them like e[X, but here's an article explaining HOW: blog.theliuy.com/inputrc-keyboard-mapping-config-file

            – Atharva Johri
            Jan 17 '14 at 12:15




            1




            1





            Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

            – Atharva Johri
            Jan 17 '14 at 12:40





            Found it! faqs.org/docs/bashman/bashref_90.html#SEC97

            – Atharva Johri
            Jan 17 '14 at 12:40











            0














            Run this command in terminal. Use Ctrl+S to toggle forward when searching for commands in the terminal. For current session- add it to .bashrc to disable it permanently.



            stty -ixon

            ctrl+r -> reverse i search

            ctrl+s -> i search





            share|improve this answer






























              0














              Run this command in terminal. Use Ctrl+S to toggle forward when searching for commands in the terminal. For current session- add it to .bashrc to disable it permanently.



              stty -ixon

              ctrl+r -> reverse i search

              ctrl+s -> i search





              share|improve this answer




























                0












                0








                0







                Run this command in terminal. Use Ctrl+S to toggle forward when searching for commands in the terminal. For current session- add it to .bashrc to disable it permanently.



                stty -ixon

                ctrl+r -> reverse i search

                ctrl+s -> i search





                share|improve this answer















                Run this command in terminal. Use Ctrl+S to toggle forward when searching for commands in the terminal. For current session- add it to .bashrc to disable it permanently.



                stty -ixon

                ctrl+r -> reverse i search

                ctrl+s -> i search






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 14 at 11:14









                mature

                2,1574931




                2,1574931










                answered Mar 14 at 5:23









                Aldrin BennetAldrin Bennet

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f366865%2freverse-i-search-doesnt-continue%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

                    數位音樂下載

                    When can things happen in Etherscan, such as the picture below?

                    格利澤436b