Quantcast
Viewing all articles
Browse latest Browse all 6

Discover user guides and manuals within your linux system

Do you realized that we can obtain a lots of user manuals and guideline documents from our system? There is a folder /usr/share/doc, you may find some useful docs already preinstalled by your distro. Those docs are in pdf or html format. I manage to find user manuals for valgrind, ipython, systemtap, boost etc.

I believes you can download those docs from the internet too, but since it already preinstalled in your system, why bother to download it again? To reduce inconveniences of accessing those docs, we can extract all the docs links into a html where we can access those docs by just click on the links.

This is what I do with find command line:


echo "<html><head><title>My Linux Docs</title></head><body><H1>My Linux PDF docs at /usr/share/doc</H1>" > doc.htm
find /usr/share/doc/ -name "*.pdf" -printf "<a href='file://%p'>%p</a></br>" >> doc.htm
echo "</br><H1>My Linux html docs at /usr/share/doc</H1>" >> doc.htm
find /usr/share/doc/ -name "index.htm*" -printf "<a href='file://%p'>%p</a></br>" >> doc.htm
echo "</body></html>" >> doc.htm

Viewing all articles
Browse latest Browse all 6

Trending Articles