Linux MAN page question

Posted on 2008-11-04
Medium Priority
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
  • 2
  • 2
  • 2
  • +2
LVL 29

Assisted Solution

fosiul01 earned 200 total points
ID: 22881287

Assisted Solution

michofreiha earned 200 total points
ID: 22881306
man ls > file_name

In order to append the same file

man ls >> file_name
LVL 29

Expert Comment

ID: 22881317
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 48

Expert Comment

ID: 22881320
man man

to find out all about man and the various categories.

LVL 48

Assisted Solution

Tintin earned 200 total points
ID: 22881331
To refer to a particular section, just do

man 5 name
LVL 12

Accepted Solution

jazzIIIlove earned 400 total points
ID: 22881349
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

ID: 31513310
Thanks so much for all your responses.

Author Comment

ID: 22882195
Hi fosiul01,

In the script given in the specified page: http://www.cyberciti.biz/tips/how-do-i-print-out-a-linux-man-or-info-page.html
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.


Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 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