How to Use Linux’s man Command

How to Use Linux’s man Command

This guide is about How to Use Linux’s man Command. So read this free guide, How to Use Linux’s man Command. If you have query related to same article you may contact us.

How to Use Linux’s man Command – Guide

There is a grain of truth to this, but even humans can be confused at first. More specifically, it can be confusing to find the information you need. Did you already know what you wanted to do, but didn’t know the name of the command that would do the job? We’ve probably all been there. It’s like trying to look up a word in the dictionary when you don’t know it. So how can you find what you’re looking for? Well, there are ways around this dilemma with humans.

Numbers are another beginner’s problem. What are they and what do they mean? You’ll see things like man(2) or man(5) referenced in the documentation and on the web. You will also see references to commands followed by numbers, What mount(2) and mount(8). You’re sure there can’t be more than one mount command, right? As we will see, numbers are important and relatively simple. Speaking of simple, searching inside human beings is pretty easy when you know how to Knife.

There’s an old Linux joke (from the golden age of Unix) that the only command you need to know is man, the system entry point for the user manual. There is a grain of truth to this, but even humans can be confused at first. More specifically, finding the information you need can be confusing.

Syntax:

  • $man … …
  • Options and Examples

    No option:

    Displays the entire command manual.

    Syntax:

    Example:

    Section-num.:

    As a manual is divided into several sections, this option is used to display only a specific section of a manual.

    Syntax:

  • $ man
  • Example:

    In this example, the man pages for the ‘intro’ command are returned, which are found in section 2.

    -f option:

    One may not be able to remember the sections where a command is present. Therefore, this option provides the section in which the given command is present.

    Syntax:

    Example:

    -one option:

    This option helps us to successively display all available intro manual pages.

    Syntax:

    Example:

    In this example, you can scroll through the manual pages (sections), i.e. reading (pressing Enter) or skipping (pressing ctrl+D) or exiting (pressing ctrl+C).

    -k option:

    This option searches for the given command as a regular expression in all manuals and returns the manual pages with the section number it is in.

    Syntax:

    Example:

    The command ‘cd’ is searched in all manual pages considering it as a regular expression.

    -w option:

    This option returns where the man page for a given command is present.

    Syntax:

    Example:

    -I option:

    It considers the command to be case sensitive.

    Syntax:

    Example:

    Final note

    I hope you like the guide How to Use Linux’s man Command. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

    We will be happy to hear your thoughts

    Leave a reply

    How to Guides, Best Lists, Top 10 and Tech News - Compsmag
    Logo