Linux MAN page question


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.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

man ls > file_name

In order to append the same file

man ls >> file_name
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

man man

to find out all about man and the various categories.

To refer to a particular section, just do

man 5 name
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...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rdashokrajAuthor Commented:
Thanks so much for all your responses.
rdashokrajAuthor Commented:
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.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.