Home Command line utilities Pinfo – A CLI Program To Read Info And Man Pages In Color

Pinfo – A CLI Program To Read Info And Man Pages In Color

By sk
Published: Last Updated on 1.2K views

Man pages, abbreviation for manual pages, needs no introduction. Man pages are the form of software documentation that is available in almost all Linux and Unix-like operating systems by default. Using man pages, you can read the usage details of any Unix command. Also, there is Info pages that serves that same purpose as man pages does. Man pages are great for a quick reference, and if you need more in-depth, better organized information, then use the info pages. Today, we will discuss about a program named Pinfo that can be used to read Info and man pages in color. It is not just for displaying info/man pages in color, but also has many other advantages.

Pinfo is a curses based lynx-style info and man pages reader. It is designed to match the keystrokes of lynx text browser. If you're already familiar with Lynx/Links text browsers, you don't need any guidance. Pinfo is very similar in use to lynx. It has the similar functionality and similar key movements of lynx. Unlike man and info mages, you can select links, follow them as the way you view a HTML page in Lynx browser. In this brief guide, we will see how to install and use Pinfo in any Unix-like operating systems.

Install Pinfo in Linux

Pinfo is available in the default repositories of most Linux distributions, so you can install it using your distribution's default package manager.

On Arch Linux and its derivatives such as Antergos, Manjaro Linux:

$ sudo pacman -S pinfo

On RHEL, CentOS:

$ sudo yum install pinfo

On Fedora:

$ sudo dnf install pinfo

On Debian, Ubuntu:

$ sudo apt-get install pinfo

On openSUSE:

$ sudo zypper in pinfo

Read Info And Man Pages in color using Pinfo

The usage is simple. Usually, to read the man page of 'uname', we type:

$ man uname

To view 'uname' info page, we type:

$ info uname

And, here is the command to read 'uname' man/info page using pinfo reader:

$ pinfo uname

Did you notice the colors and links under "REPORTING BUGS" and "SEE ALSO" sections? Yes, it looks much better now! We can just choose them using up/down arrows (click on the links using your mouse) and hit ENTER to follow them.

Here is what I got after clicking on the last link.

To quit pinfo, type q.

For more details, refer the pinfo man pages.

$ pinfo pinfo

Or,

$ man pinfo

Recommended Read:


Conclusion

I like Pinfo and I've decided to stick with it for a while. It turns references to other man pages into links, and I can navigate them with the cursor and move back and forth, as in Lynx/Links. It makes navigating man pages much more efficient. Being able to scroll down to the "SEE ALSO" part, select something and press Enter is pretty good. Pinfo is particularly useful when you open the page for the wrong manpage section, such as "man write" when you meant to write "man 2 write".

Resource:

You May Also Like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More