Funny Linux Commands – Check Weather In Linux Terminal
Install curl [optional]Before you can use the API of wttr.in(for weather info), you need to install curl in your system.
$ sudo apt-get install curl For fedora based system $ sudo yum install curl
Linux Weather App Through wttr.in
Open terminal. (shortcut : ctrl + alt + T) and type command :
The funny Linux commands show you weather forecast layout for your location for three days with current wind speed. It’s useful when you’re working in terminal and don’t want to move out of terminal. You can check the weather forecast immediately in the terminal, simply and quickly.
curl wttr.in/location Example: curl wttr.in/PaloAlto
Check Weather In Linux Terminal Using wget Command
wget -qO- wttr.in/Mumbai
Surfing Through StackOverflow In Terminal
How To Install How2 To Surf StackOverflow In Terminal
There are a couple of dependencies before installing How2. So let’s fix them first –Install npm
$ sudo apt-get update $ sudo apt-get dist-upgrade
$ sudo apt-get install nodejs
$ sudo npm install -g how2
NOTE: There is a known bug in debian based Linux. It uses its internal node command instead of nodejs one. In case you encounter error even after successful installation:
Do the following changes:
ln -s /usr/bin/nodejs /usr/bin/node
How To Use How2 To Surf StackOverflow In Linux
how2 [optionaParameter] your Query
If I want to surf how to write if statement in shell script, I would type command: how2 write if in shell script
It would search and display the result as shown in the screenshot below:
select the most relevant to you.
how2 reverse list -l java