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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值