Skip to content
forked from santinic/how2

Howto finds the simplest way to do something on a unix bash command line

License

Notifications You must be signed in to change notification settings

zippeurfou/how2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how2: stackoverflow from the terminal

how2 finds the simplest way to do something in a unix shell. It's like man, but you can query it in natural language:

Demo of using how2

Install

You can install it via npm:

sudo npm install -g how2

If you don't have npm:

Then just install NodeJS:

  • On Ubuntu try with sudo apt-get install nodejs npm
  • On Mac brew install node

Usage

If you don't specify a language it defaults to Bash unix command line. how2 tries to give you immediately the most likely answer:

how2 unzip bz2

After that you can press SPACE to go to the interactive mode, where you can choose a different stackoverflow question/answer.

how2 interactive mode

how2 interactive mode 2

With -l you can also find answers for other languages:

$ how2 -l python permutations of a list

How does it work ?

It uses Google and Stackoverflow APIs, because Stackoverflow search on its own doesn't works as well.

Why ?

Because I can never remember how to do certain things. And reading man pages always takes too long.

XKCD

TODO

  • Add automatic copy/paste from -i to command line

About

Howto finds the simplest way to do something on a unix bash command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%