Searching Internet from Terminal









up vote
-1
down vote

favorite












Is it possible to search the internet from the terminal. For instance, could i write some command followed by say https://github.com and it will automatically open a browser with that site through the http protocol.







share|improve this question




















  • The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
    – user3439894
    Aug 19 at 14:46











  • In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
    – user3439894
    Aug 19 at 14:54














up vote
-1
down vote

favorite












Is it possible to search the internet from the terminal. For instance, could i write some command followed by say https://github.com and it will automatically open a browser with that site through the http protocol.







share|improve this question




















  • The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
    – user3439894
    Aug 19 at 14:46











  • In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
    – user3439894
    Aug 19 at 14:54












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











Is it possible to search the internet from the terminal. For instance, could i write some command followed by say https://github.com and it will automatically open a browser with that site through the http protocol.







share|improve this question












Is it possible to search the internet from the terminal. For instance, could i write some command followed by say https://github.com and it will automatically open a browser with that site through the http protocol.









share|improve this question











share|improve this question




share|improve this question










asked Aug 19 at 13:41









Cody Rutscher

456




456











  • The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
    – user3439894
    Aug 19 at 14:46











  • In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
    – user3439894
    Aug 19 at 14:54
















  • The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
    – user3439894
    Aug 19 at 14:46











  • In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
    – user3439894
    Aug 19 at 14:54















The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
– user3439894
Aug 19 at 14:46





The title of your question and the example you pose really are not the same thing. Opening a URL that doesn't perform a search query from Terminal is not searching the Internet, it's just opening a URL. You should clarify the Title to match the question or clarify whether or not you actually want to employ a command line utility that can actual preform a search.
– user3439894
Aug 19 at 14:46













In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
– user3439894
Aug 19 at 14:54




In the following example command, the URL is engaging the search engine of the site, open "http://google.com/search?q=Cody Rutscher" however, there are third-party command line utilities that can also preform an Internet search base on the arguments passed. What is it you're actually looking for?
– user3439894
Aug 19 at 14:54










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










You could use the /usr/bin/open command to open websites from the command line.



Simply entering open http://www.github.com would open GitHub in your default browser.



You can further specify which browser you would like to use, if perhaps it’s not the default one, by using the -a switch for the open command. For example, open -a "Safari" http://www.github.com would open GitHub in Safari even if your default browser is set to Chrome.



The open command is very powerful and can be used to launch all finds of stuff from the command line. I have an alias set to open Finder in whatever folder I pass as a parameter, so that when I type f ., it opens Finder in whatever directory I’m working in in Terminal. You could do the same with Google, with a bit of creativity, and pass on your search parameters from the command line. You can also use it to open documents in specific applications, or simply to start an application by typing open -a "Preview" for example.






share|improve this answer





























    up vote
    1
    down vote













    You can also browse the internet from within the terminal with browsers like Lynx (https://lynx.browser.org/), but from your question I'm not sure if this is what you want.



    Lynx is commonly available for linux systems, and a quick google finds Lynxlet for Mac systems as well (https://habilis.net/lynxlet/).



    Once installed, your command would be something like:



    open -a Lynxlet https://github.com/





    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "118"
      ;
      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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f334134%2fsearching-internet-from-terminal%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      You could use the /usr/bin/open command to open websites from the command line.



      Simply entering open http://www.github.com would open GitHub in your default browser.



      You can further specify which browser you would like to use, if perhaps it’s not the default one, by using the -a switch for the open command. For example, open -a "Safari" http://www.github.com would open GitHub in Safari even if your default browser is set to Chrome.



      The open command is very powerful and can be used to launch all finds of stuff from the command line. I have an alias set to open Finder in whatever folder I pass as a parameter, so that when I type f ., it opens Finder in whatever directory I’m working in in Terminal. You could do the same with Google, with a bit of creativity, and pass on your search parameters from the command line. You can also use it to open documents in specific applications, or simply to start an application by typing open -a "Preview" for example.






      share|improve this answer


























        up vote
        3
        down vote



        accepted










        You could use the /usr/bin/open command to open websites from the command line.



        Simply entering open http://www.github.com would open GitHub in your default browser.



        You can further specify which browser you would like to use, if perhaps it’s not the default one, by using the -a switch for the open command. For example, open -a "Safari" http://www.github.com would open GitHub in Safari even if your default browser is set to Chrome.



        The open command is very powerful and can be used to launch all finds of stuff from the command line. I have an alias set to open Finder in whatever folder I pass as a parameter, so that when I type f ., it opens Finder in whatever directory I’m working in in Terminal. You could do the same with Google, with a bit of creativity, and pass on your search parameters from the command line. You can also use it to open documents in specific applications, or simply to start an application by typing open -a "Preview" for example.






        share|improve this answer
























          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You could use the /usr/bin/open command to open websites from the command line.



          Simply entering open http://www.github.com would open GitHub in your default browser.



          You can further specify which browser you would like to use, if perhaps it’s not the default one, by using the -a switch for the open command. For example, open -a "Safari" http://www.github.com would open GitHub in Safari even if your default browser is set to Chrome.



          The open command is very powerful and can be used to launch all finds of stuff from the command line. I have an alias set to open Finder in whatever folder I pass as a parameter, so that when I type f ., it opens Finder in whatever directory I’m working in in Terminal. You could do the same with Google, with a bit of creativity, and pass on your search parameters from the command line. You can also use it to open documents in specific applications, or simply to start an application by typing open -a "Preview" for example.






          share|improve this answer














          You could use the /usr/bin/open command to open websites from the command line.



          Simply entering open http://www.github.com would open GitHub in your default browser.



          You can further specify which browser you would like to use, if perhaps it’s not the default one, by using the -a switch for the open command. For example, open -a "Safari" http://www.github.com would open GitHub in Safari even if your default browser is set to Chrome.



          The open command is very powerful and can be used to launch all finds of stuff from the command line. I have an alias set to open Finder in whatever folder I pass as a parameter, so that when I type f ., it opens Finder in whatever directory I’m working in in Terminal. You could do the same with Google, with a bit of creativity, and pass on your search parameters from the command line. You can also use it to open documents in specific applications, or simply to start an application by typing open -a "Preview" for example.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 19 at 14:27

























          answered Aug 19 at 14:11









          Rob de Jonge

          971411




          971411






















              up vote
              1
              down vote













              You can also browse the internet from within the terminal with browsers like Lynx (https://lynx.browser.org/), but from your question I'm not sure if this is what you want.



              Lynx is commonly available for linux systems, and a quick google finds Lynxlet for Mac systems as well (https://habilis.net/lynxlet/).



              Once installed, your command would be something like:



              open -a Lynxlet https://github.com/





              share|improve this answer
























                up vote
                1
                down vote













                You can also browse the internet from within the terminal with browsers like Lynx (https://lynx.browser.org/), but from your question I'm not sure if this is what you want.



                Lynx is commonly available for linux systems, and a quick google finds Lynxlet for Mac systems as well (https://habilis.net/lynxlet/).



                Once installed, your command would be something like:



                open -a Lynxlet https://github.com/





                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  You can also browse the internet from within the terminal with browsers like Lynx (https://lynx.browser.org/), but from your question I'm not sure if this is what you want.



                  Lynx is commonly available for linux systems, and a quick google finds Lynxlet for Mac systems as well (https://habilis.net/lynxlet/).



                  Once installed, your command would be something like:



                  open -a Lynxlet https://github.com/





                  share|improve this answer












                  You can also browse the internet from within the terminal with browsers like Lynx (https://lynx.browser.org/), but from your question I'm not sure if this is what you want.



                  Lynx is commonly available for linux systems, and a quick google finds Lynxlet for Mac systems as well (https://habilis.net/lynxlet/).



                  Once installed, your command would be something like:



                  open -a Lynxlet https://github.com/






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 19 at 17:17









                  leeman

                  111




                  111






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f334134%2fsearching-internet-from-terminal%23new-answer', 'question_page');

                      );

                      Post as a guest














































































                      Popular posts from this blog

                      ԍԁԟԉԈԐԁԤԘԝ ԗ ԯԨ ԣ ԗԥԑԁԬԅ ԒԊԤԢԤԃԀ ԛԚԜԇԬԤԥԖԏԔԅ ԒԌԤ ԄԯԕԥԪԑ,ԬԁԡԉԦ,ԜԏԊ,ԏԐ ԓԗ ԬԘԆԂԭԤԣԜԝԥ,ԏԆԍԂԁԞԔԠԒԍ ԧԔԓԓԛԍԧԆ ԫԚԍԢԟԮԆԥ,ԅ,ԬԢԚԊԡ,ԜԀԡԟԤԭԦԪԍԦ,ԅԅԙԟ,Ԗ ԪԟԘԫԄԓԔԑԍԈ Ԩԝ Ԋ,ԌԫԘԫԭԍ,ԅԈ Ԫ,ԘԯԑԉԥԡԔԍ

                      How to change the default border color of fbox? [duplicate]

                      Henj