info&man的基本使用

1. “info” 是获得系统信息的最好的命令, 从下面开始
          $ info coreutils               (ps: 膜拜一下....)

    info 中的快捷键:       

       'q' exits.
       'u' moves up to the table of contents of the current section.
       'n' moves to the next chapter.
       'p' moves to the previous chapter.
       'space' goes into the selected section.

   2. "man" 我们都熟悉,刚刚入门很纳闷,为什么man open,该死的系统完全拒绝帮助。给我一个openvt,no no 不是这个。

     到底是哪一个?   (btw:  man -f open   == whatis open)

       $ whatis  open
       open   (2)  - open and possibly create a file or device
       open   (3)  - perl pragma to set default PerlIO layers for input and output
       open   (3pm)  - perl pragma to set default PerlIO layers for input and output
       open   (n)  - Open a file-based or command pipeline channel

     然后?

$ man 2 open

   3. man提供搜索的:

       $ man -k open     
   4.  man中的快捷键(ps: 是不是很像vi?)

        space      moves forward one page
        b          moves backward
        y          scrolls up one line "yikes, I missed it!"
        g          goes to the beginning
        q          quits
        /<string>  search, repeat seach n
        m          mark, enter a letter like "a", then, ' to go back
        '          enter a letter that is marked.

   5. 话说 man 2 open, 2表示什么?在OpenBSD中

         1  General Commands
         2  System Calls and Error Numbers
         3  C Libraries
         3p perl
         4  Devices and device drivers
         5  File Formats and config files
         6  Game instructions
         7  Miscellaneous information
         8  System maintenance
         9  Kernel internals

   6. 最后 你想知道man在哪里?

          $ manpath
          or only get the man path of "ls" command:
          $ whereis -m ls



你可能感兴趣的:(command,perl,System,input,output,Numbers)