Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anywhere one can get a copy of Ubuntu's man pages in e-reader (preferably Kindle/mobi, epub can be handled)format?

share|improve this question
up vote 8 down vote accepted

This bash command will dump HTML files for every man page on the system. You'll need to install the groff package first, then cd to an empty directory and run:

for f in `ls -1 /usr/share/man/man*`; do n=`echo $f | sed s/[.].*[.]gz//`; man -Thtml $n > $n.html ; done

This will cycle through all of the files in the /usr/share/man directory, strip off the section number and the extension using sed, then call man to render the manpage to HTML (man -Thtml in turn calls groff, which is why you need it installed first), storing the result in an html file with the same name as the page. It will take a while to complete, and groff throws some warnings about line breaks, but when it finishes, you will have all of your man pages in HTML format.

Most e-readers can handle HTML files, but if yours doesn't, you can use calibre to convert the HTML files to mobi or epub or any other format you choose.

share|improve this answer
You can try also man -Tdvi and dvi2pdf after that to get a bunch of PDFs. – ulidtko Jan 17 '11 at 11:32
Sounds excellent. I knew there was a way to get PDF output, but PDFs don't reflow well – acp Jan 17 '11 at 14:15
I've had pretty good luck using Calibre to convert pdf's for my kindle and android. (Text and html convert well, of course.) – belacqua Jan 18 '11 at 2:01

all man pages are located at


But they're compressed in .gz files. Also there's a web where you can see all man pages online. I guess if you search a software who gives you the possibility to download all content of each page/link, you can create your own man-pages library for e reader

share|improve this answer
The mentioned downloading software could be wget -R. – ulidtko Jan 17 '11 at 11:30

Your Answer


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.