LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2018, 06:23 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Arrow How to Easily Read a Linux Man Page


Hi,

New Gnu/Linux users will find this article helpful when needing to get information from man pages; How to Easily Read a Linux Man Page
Quote:
One of the most important skills you can learn as a Linux user is how to use a manual page, or “man page.”
This article will introduce you to those simple documents. You’ll learn how to open man pages and identify the contents inside, which will include special markings such as bold and underlined text alongside indicators such as ellipses (…) and brackets ([ ]).
Man pages are fairly easy to tackle, and your time is valuable, so let’s not waste another minute.
Man pages are not that complicated to read when one knows how to move through and understanding the semantics along with syntax for each command.

Hope this helps.
Have fun & enjoy!
 
Old 03-29-2018, 12:56 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
For colors:
Code:
export PAGER=most
 
Old 03-30-2018, 05:05 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Also
Code:
man man
may help get to grips with them.

Last edited by fatmac; 03-30-2018 at 12:47 PM.
 
Old 03-30-2018, 07:12 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,881
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I've always found manual pages to be of incalculable help to me.

The SECTIONS are some of the most important portions to me, especially NOTES, EXIT STATUS or RETURN VALUE, ERRORS, OPTIONS, as well as SYNOPSIS. SEE ALSO is typically very helpful.

I would note that manual pages are not just for command line commands, but also for library functions, for instance write(2) which is a C library function, as opposed to write(1) which is a command line tool that allows you to write information to a user.

For library functions, you also see the include files needed to allow use of that function in your application or driver, and you also learn if you need to link with a special library.

The -a argument and the -S # arguments are helpful:
Code:
$ man -a write  // this will show all manual pages for write
$ man -S 1 write  // this will show the man page for write(1), the command line utility
$ man -S 2 write  // this will show the man page for write(2), the C library function
I also like the online site linux.die.net which helps to find online manual pages.

What's most important is to really READ the content in the manual page. There are a ton of different points sometimes made about things and about other calls you may make. For instance the write(2) function talks about how you write to a file or descriptor, and the manual page also discusses what certain flags do when you use them in your open(2) call. And similarly, each of those types of functions' manual pages talks about the return value and the possible errors, which become very important the times when you open and then try to read from or write to a file and find that things aren't behaving.
 
  


Reply

Tags
man, man page


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Easily Read a Linux Man Page LXer Syndicated Linux News 0 03-27-2018 05:31 AM
How to make program man page in linux 9gagarmy Linux - General 1 02-01-2013 12:13 PM
man page is not found although $MANPATH and man.conf changed Abbraxas Linux - Newbie 3 09-05-2011 06:40 PM
What is a Linux Man Page? Saquear Linux - General 24 01-22-2005 09:15 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration