Solved

How do I get to  the sections in a man page in linux

Posted on 2014-09-14
4
334 Views
Last Modified: 2014-09-14
Have read that there are sections in man pages.  How do I get to them ?

Section - covers
8           -  sysadmin special  
5            -  config
1            -  regular user commands

I need to be able to find this type of information fast from the man page.  

redhat 5+
0
Comment
Question by:TIMFOX123
  • 2
4 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 100 total points
ID: 40321881
man sectionnumber pagename
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 400 total points
ID: 40321884
You can specify a section when searching for a particular manual page.

Example: man 3 printf

wil display the man page for the printf() function.

man 1 printf

will do the same for the printf user command.

man 5 crontab

will display help for the crontab config file,

man 1 crontab

will do the same for the crontab user command.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40321904
You can see which sections exist for a given page with "-f"

Try man -f printf or man -f crontab or man -f ls

A section suffixed with "p" contains the respective POSIX specifications.
0
 

Author Closing Comment

by:TIMFOX123
ID: 40321919
As always a great answer wmp
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS CLI issues with Tags 3 64
Linux hostname change 2 54
video edge NVR Device Discovery Problem 4 34
linux redhat 7.2 10 43
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

911 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

23 Experts available now in Live!

Get 1:1 Help Now