Linux MAN page question

Posted on 2008-11-04
Last Modified: 2013-12-15

I have couple of question regarding using Man pages in Linux.

1. When i get into the folder /usr/share/man, I could see folders such as man1, man2, man3, man4 ......man9. what are all those?  In some article, I noticed something like "refer man5 page" etc. How can i do that?

2. Can I convert the Man pages into a file so that I can take print out of it or save it for future reference.

Question by:rdashokraj
    LVL 29

    Assisted Solution

    LVL 9

    Assisted Solution

    man ls > file_name

    In order to append the same file

    man ls >> file_name
    LVL 29

    Expert Comment

    if you want some informaiton, you type

    man ls = to get information about ls command
    you dont go to /usr/share/man folder for that
    LVL 48

    Expert Comment

    man man

    to find out all about man and the various categories.

    LVL 48

    Assisted Solution

    To refer to a particular section, just do

    man 5 name
    LVL 12

    Accepted Solution

    Hi there;

    Some commands have multiple man pages. For instance, the passwd command has a man page in section 1 and another in section 5. By default, the man page with the lowest number is shown. If you want to see another section than the default, specify it after the man command:

    man 5 passwd

    If you want to see all man pages about a command, one after the other, use the -a to man:

    man -a passwd

    This way, when you reach the end of the first man page and press SPACE again, the man page from the next section will be displayed.

    Best regards...


    Author Closing Comment

    Thanks so much for all your responses.

    Author Comment

    Hi fosiul01,

    In the script given in the specified page:
    has one small bug.

    Instead of this line,  man $i  col -b > $OUTDIR/$i.txt
    the syntax should be as  man $i | col -b > $OUTDIR/$i.txt

    The pipe is left out in it.

    Just want to bring to your notice.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now