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.
terminal mac http
add a comment |Â
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.
terminal mac http
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
add a comment |Â
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.
terminal mac http
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.
terminal mac http
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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/
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Aug 19 at 14:27
answered Aug 19 at 14:11
Rob de Jonge
971411
971411
add a comment |Â
add a comment |Â
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/
add a comment |Â
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/
add a comment |Â
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/
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/
answered Aug 19 at 17:17
leeman
111
111
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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