プログラミングで分からないことがあればGoogleを使って検索する人は多いですが、その結果の多くはStackoverflowに繋がっていたりします。ということは最初からStackoverflowで検索しても良いはずです。 今回紹介するhow2はそんなStackoverflow専用の検索ツールなのですが、UIがターミナルという点が特徴になります。

how2の使い方

使い方は簡単で、how2コマンドの後ろに調べたいキーワードを入力するだけです。そうすると検索結果が表示されます。

$ how2 react document not found
linux - How to fix non-responsive Ubuntu system?

If you want a way to reboot, without saving open documents, but without hitting the reset button, then there are ways that are less likely to cause data loss. First, try Ctrl+Alt+F1. That should bring you to a virtual console, as ixtmixilix (http://unix.stackexchange.com/users/1389/ixtmixilix) said. Once you're in a virtual console, Ctrl+Alt+Delete will shut down and reboot the machine. If that technique doesn't work, there's always Alt + SysRq + R E I S U B (http://en.wikipedia.org/wiki/Reisub#.E2.80.9CREISUB.E2.80.9D_.E2.80.93_safe_reboot).

As for fixing the problem without rebooting, without more information about what is going on, it would be difficult to give a good answer. If you could describe the circumstances under which this occurs (the best way to do that is to edit your question to add the information), then that may help people to give good answers. The other thing to consider is that, if your computer is becoming unresponsive (especially if it takes more than a a few seconds for Ctrl+Alt+F1 to bring up a virtual console), you almost certainly have a bug, and by reporting it (https://help.ubuntu.com/community/ReportingBugs) you can both help the community and maybe get an answer.

##GUI Glitches Causing Unresponsive Window Manager / X11

さらにもっと結果が見たい場合は一覧で確認できます。

そしてタイトルを選ぶと詳細なやり取りが確認できます。

how2を使えばブラウザを立ち上げてStackoverflowにアクセス、さらに検索キーワードを入力するという手間が大幅に削減できます。情報は文字だけなので見やすいのも利点でしょう。しょっちゅうStackoverflowを使う方はインストールしてみてはいかがでしょう。

how2はnode/JavaScript製のオープンソース・ソフトウェア(MIT License)です。

santinic/how2: stackoverflow from the terminal