How to Access google from Linux Terminal
To Access google from Linux Terminal
In this article we will discuss how to access google from terminal using w3m command. World Wide Web(w3m) is a tool to view the html documents.
Run the following command to install w3m tool.
root@linuxhelp1:~# apt-get install w3m -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
w3m-img libsixel-bin w3m-el cmigemo
The following NEW packages will be installed:
w3m
0 upgraded, 1 newly installed, 0 to remove and 155 not upgraded.
Need to get 892 kB of archives.
After this operation, 2,388 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 w3m amd64 0.5.3-26build1 [892 kB]
Fetched 892 kB in 4s (191 kB/s)
Selecting previously unselected package w3m.
(Reading database ... 206363 files and directories currently installed.)
Preparing to unpack .../w3m_0.5.3-26build1_amd64.deb ...
Unpacking w3m (0.5.3-26build1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up w3m (0.5.3-26build1) ...
After installing, access the google by using the following command.
root@linuxhelp1:~# w3m www.google.com
You can login to gmail account as shown in the following command.
To logout, choose the sign out option.
Lets try a Google search results for “ linuxhelp”
Open the link in the search result.
Now try to open the youtube site.
root@linuxhelp1:~# w3m www.youtube.com
Q
How to install links in fedora?
A
It's Simple, just use following command to install Links "dnf install links"
Q
Is youtube dl is used in Centos same like rhel?
A
Yes you can it supports all rpm based distributions.
Q
How to set the environmental variable so that I can access from anywhere?
A
Set the BROWSER environment variable as follows:
export BROWSER=w3m
export BROWSER=w3m
Q
But we don't get any graphical interface for this?
A
No this is command line utility
Q
Is there any best alternative for w3m ?
A
The Tools like Lynx, Links,Dillo , etc. are the alternatives for w3m