Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Git bash on Windows 7. It provides me with a way to use most of the commands that I used to use on the bash shell on my Ubuntu machine. But the man and the info commands do not work. Is there a way to get these (incredible) documentation commands working on the Git bash shell on windows?

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

You could use the online documentation.

Linux man pages online & GNU Info Pages

share|improve this answer
    
are there any programs that will connect to these web pages from the command line and display the result? so that I can still type info grep on the shell and get the results there? –  Prasanth Jun 10 '11 at 13:45
1  
@Prasanth perhaps you can do a wget <URL> & then grep it. –  Sathya Jun 13 '11 at 4:36
add comment

You can get man pages working on Git's bash environment, but it's probably more convenient to consider other alternatives that take less work.

I also don't have much rep on SuperUser, so I'm sad to say I can't really give all the links I need to in the response. I re-posted my response on Tumblr.

In summary:

  • Git's bash is a part of the msysGit project.
  • msysGit is a fork of the MinGW and MSYS project
  • You'll need either msysGit or MinGW to install MinGW-get
  • You'll need MinGW-get to install Groff
  • You'll need Groff to run these scripts to give you a man command from within the msys bash shell
  • With those scripts in place, you can read man pages. You'll just need to download them to the path you've indicated in the scripts.

Good luck.

share|improve this answer
1  
You can install man with MinGW-get install msys-man. Man is also available as a windows binary: sourceforge.net/projects/ezwinports/files (found via the FAQ: mingw.org/wiki/FAQ#toc10). That page also has groff. Either would probably run faster than those scripts. –  Sam Hasler Feb 18 at 9:53
    
@SamHasler msys-man is great. Thanks for the tip, I don't know how I missed that. –  Mr. Dave Feb 24 at 19:11
add comment

It may be a bit overkill, but you could download Cygwin which would include bash, man, and info readers like pinfo.

The cygwin installer would let you customize your install to be a pretty small subset of cygwin.

share|improve this answer
    
Not overkill in the slightest; it seems fairly common that someone will want a Unixy experience on Windows and install Git Bash mistakenly thinking that's the way to get one. Cygwin, meanwhile, actually provides one, probably to the maximal extent possible or very nearly so. –  Aaron Miller Aug 21 '13 at 17:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.