Can I open a certain website with a command line? [duplicate]
Solution 1:
Have a look at xdg-open
which uses the default program for opening the link:
xdg-open http://example.com
some documentation from Ubuntu:
xdg-open - opens a file or URL in the user’s preferred application
Solution 2:
Use the command
firefox http://www.youtube.com
This should do it. 8 )
Solution 3:
If you only need to open it in the background use:
wget http://askubuntu.com
To download a page (optionally mirror sub pages):
wget --mirror -p --convert-links -P ~/Desktop/ http://askubuntu.com/users/182026/kamil
If you want to open it and see it
and you use firefox:
firefox http://askubuntu.com
or you use google chrome
google-chrome http://askubuntu.com
Solution 4:
If you want to use the web page from an xterm/command line then you can install lynx on Ubuntu 12.04 LTS. I have lynx-cur installed.
apt-get install lynx-cur
I don't think you need any special repositories,
lynx http://askubuntu.com
I use it to do screen scrapes
wget can be used as follows if you want to look at what is going by:
wget -O- -S http://askubuntu.com | more
This will send the output to stdout, and give you the server-response info