Brief Bytes: Utilizing StackOverflow to resolve your doubts proper from the terminal window may be very simple. It is advisable obtain a small software and use a easy syntax to go looking StackOverflow questions with out leaving the world of the terminal. Go forward and provides it a strive.
In our collection of Linux Lexicon, we’re constantly including new articles that will help you study Linux from the scratch. In our articles overlaying the fundamental Linux instructions, you’d have come throughout the one telling you about man pages and their navigation. Every Linux command line program has its personal documentation that’s listed in its man pages.
Man pages of Linux are restricted to the working system and you may entry them anytime in your terminal. However, what to do if you wish to get some particular reply associated to some programming language or the rest? You’ll be opening your net browser and typing within the question to get the reply.
Properly, if you’re a terminal animal, then there’s a approach to entry StackOverflow proper from the terminal itself. On this article, I’ll be telling you ways to do this and make your terminal session extra fascinating.
The way to entry StackOverflow out of your Linux Terminal?
Utilizing a easy script, browsing StackOverflow in Terminal turns into a simple activity. If you happen to spend a whole lot of productive time within the terminal, you might want to set up how2 on Ubuntu-based distros to attain this performance.
To put in the how2 command, you might want to execute following steps:
Set up npm:
$ sudo apt-get replace
$ sudo apt-get dist-upgrade
Set up nodejs:
$ sudo apt-get set up nodejs
Set up How2:
$ sudo npm set up -g how2
Word: It’s doable that your Linux distribution makes use of nodejs as a substitute of node. So, you might want to make a symlink so as to make issues work:
ln -s /usr/bin/nodejs /usr/bin/node
For putting in How2 software in your macOS terminal, you might want to set up node with brew utilizing the following command:
brew set up node.
Set up How2 utilizing the identical Linux command as talked about above.
Now, to make use of the software, you possibly can search StackOverflow through the use of how2 command adopted by the specified question:
how2 implement if in shell script
To get extra choices, you possibly can press spacebar to launch the interactive mode to get an inventory of StackOverflow query/solutions.
To get extra details about this software and its utilization, you possibly can head over to How2’s GitHub page.
Did you discover this text fascinating? Don’t neglect to drop your suggestions within the feedback part beneath.
Additionally Learn: Run This Single Command In Terminal To Get Geeky Weather Reports