Use of man and info in Linux Online documents

Source: Internet
Author: User
  1. Man
  2. I don't know how to use the date command? Hey, hey! Don't worry, as long as "man date" is issued, there will be clear instructions in front of you:

     

    [Root @ test root] # Man date

    Date (1) FSF date (1)

    Name

    Date-print or set the system date and time

    Synopsis

    Date [Option]... [+ format]

    Date [-u | -- UTC | -- Universal] [mmddhhmm [[CC] YY] [. SS]

    Description

    Display the current time in the given format, or set the system date.

    -D, -- date = string

    Display time described by string, not 'now'

    -F, -- file = datefile

    Like -- date once for each line of datefile

    .......................................... (Omitted in the middle)

    Environment

    TZ specifies the timezone, unless overridden by command line parameters. If

    Neither is specified, the setting from/etc/localtime is used.

    Author

    Written by David macenzie.

    Reporting bugs

    Report Bugs to <bug-sh-utils@gnu.org>.

    Copyright

    Copyright? 2000 Free Software Foundation, Inc.

    This is free software; see the source for copying conditions. There is no war?

    Ranty; not even for merchantability or fitness for a particle purpose.

    See also

    The full documentation for date is maintained as a texinfo manual. If the info and

    Date programs are properly installed at your site, the command

    Info date

    Shoshould give you access to the complete manual.

    GNU sh-utils 2.0.11 October 2000 date (1)

    (End)

     

    Look! Now I know a lot of usage! This screen is called man page. You can query its usage and related parameter descriptions. If you want to flip the page down, press the Space key on the keyboard, you can also use [page up] and [Page Down] to flip pages! At the same time, if you know some keywords, you can enter "/word" at any time to actively search for keywords! For example, in the search above, what will happen if I input/date?

     

     

     

    In addition, have you seen the last few pieces of information? Including the "environment", "author", and related information of this program. The most important thing is the content of "See also". This content tells us, you can also query other related programs! Haha! You can find more! Great! Leave man page and enter the letter "Q" to exit! Sort it out. In man page, you can press the following keys:

  • Space key: flip one page down;
  • Page up: page up;
  • Page down: Flip the page down;
  • Home: return to the beginning;
  • End: Go to the final page;
  • /Word: search for the word file.

 

So where are these man pages? Different distribution may be slightly different. However, it is usually stored in/usr/share/man. However, we can improve the directory by modifying the man page search path! Modify/etc/man. config (some versions are man. conf! For more information about man, you can use man to query man! For more detailed settings, we will continue to explain in the shell chapter!

  • Info
  • In addition to man, Linux also provides another query method called info, which is similar to man,

     

    [Root @ test root] # info command

     

    Use info followed by the command name you want to query! This info function is more powerful than man! In this info page, you can enter P and N to flip the page forward and backward. If you see the project of "* text:", move the cursor over the project, press enter to go to the next page! Amazing! However, this info is available only under Linux, and other UNIX-like methods are unavailable! Unless you have installed... in any case, we will introduce this part in system administrator!

  • /Usr/share/doc
  • As mentioned above, generally, instructions or software producers make their own instructions or software instructions into an "online instruction file 』! However, after all, not every ding dong needs to make an online instruction file. There are a lot of instructions that require additional files! At this point, the so-called how-to (how to do it) is very important! In addition, some software not only tells you how to do it, but also explains some related principles. Where are these instruction files? Haha! Put it in this directory/usr/share/doc! So, in fact, as long as you go to the directory, you will find a lot of file descriptions! You do not need to find data on the network! Amazing! Pai_^

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.