Using stackoverflow without leaving the console

Translated into: EnglishРусский


Suppose you want to know how to format the date in bash. Why open your browser, wait for the page to load, look for the right answer to stackoverflow, risking distraction when you can just run one command in the console:

$ howdoi format date bash

Will return:

DATE='date +%Y-%m-%d'

Or forgot how to make an http request in javascript:

$ howdoi http request in js

Will return:

var xmlHttp = new XMLHttpRequest();'GET', theUrl, false);
return xmlHttp.responseText;

The howdoi utility is written on python and by default uses google to search for answers on stackoverflow. You can change the search engine and the source of answers (entire list of sources).

Try it yourself:


Научим проектировать и масштабировать веб‑сервисы

Это необычный курс. Nerdia — это симулятор работы в IT-компании. Узнать больше