zoukankan      html  css  js  c++  java
  • linux man 手册各个章节的意义和用法

    Linux的man很强大,该手册分成很多section,使用man时可以指定不同的section来浏览,各个section意义如下:

    1 - commands
    2 - system calls
    3 - library calls
    4 - special files
    5 - file formats and convertions
    6 - games for linux
    7 - macro packages and conventions
    8 - system management commands
    9 - 其他

    解释一下:

    1是普通的命令

    2是系统调用,如open,write之类的(通过这个,至少可以很方便的查到调用这个 函数,需要加什么头文件)

    3是库函数,如printf,fread

    4是特殊文件,也就是/dev下的各种设备文件

    5是指文件的格 式,比如passwd, 就会说明这个文件中各个字段的含义

    6是给游戏留的,由各个游戏自己定义

    7是附件还有一些变量,比如向 environ这种全局变量在这里就有说明

    8是系统管理用的命令,这些命令只能由root使用,如ifconfig

         想要指定 section就直接在man的后面加上数字,比如:

    man 1 ls
    man 3 printf

        对于像open,kill这种既有命令,又有系统调用的来说,man open则显示的是open(1),也就是从最前面的section开始,如果想查看open系统调用的话,就得man 2 open。

        用以下命令搞定安装:

    sudo apt-get install manpages
    sudo apt-get install manpages-de
    sudo apt-get install manpages-de-dev
    sudo apt-get install manpages-dev
  • 相关阅读:
    zoj 3715 K
    bzoj 2002(弹飞绵羊) 分块
    最大01矩阵(悬线法)
    csu 1809 Parenthesis(线段树)
    csu 1804(有向无环图)
    csu 1803(2016)
    RCC 2017 Qual 1 Mail.Ru, April 2, 2017 Problem C. Magic Artifact
    Unmarshaller解析xml文件
    sax解析xml文件,封装到对象中
    cas环境搭建
  • 原文地址:https://www.cnblogs.com/xuxm2007/p/2082297.html
Copyright © 2011-2022 走看看