码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 如何查找linux指令或者资料的说明


    如何查找linux指令或者资料的说明

    例子:查找printf的用法说明

    1. 先用 whatis printf 查看printf相关的信息(也可以用man -f printf,man --help中有介绍,两种方式一样)
    ubuntu@VM-16-16-ubuntu:~$ whatis printf
    printf (1)           - format and print data
    printf (3)           - formatted output conversion
    
    • 1
    • 2
    • 3

    可以看到返回的内容:命令名称+命令在man手册中的章节+简述命令或函数的作用
    小贴士:可以通过man man 查看到man手册9个章节的含义

      1   Executable programs or shell commands				
      2   System calls (functions provided by the kernel)
      3   Library calls (functions within program libraries)      #一些常用函数库,大部分为C函数库
      4   Special files (usually found in /dev)
      5   File formats and conventions, e.g. /etc/passwd
      6   Games
      7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
      8   System administration commands (usually only for root)
      9   Kernel routines [Non standard]
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    1. 要查找shell命令printf的详细说明,选择man手册的第一章 man 1 printf查看,当然也可以直接printf --help
      要查找C语言printf库函数的用法,选择man手册的第三章 man 3 printf查看

    2. 如果要查找的指令或者函数名称包含printf,可以使用man -k printf(等价于apropos printf)

    ubuntu@VM-16-16-ubuntu:~$ man -k printf
    asprintf (3)         - print to allocated string
    dprintf (3)          - formatted output conversion
    fprintf (3)          - formatted output conversion
    fwprintf (3)         - formatted wide-character output conversion
    printf (1)           - format and print data
    printf (3)           - formatted output conversion
    snprintf (3)         - formatted output conversion
    sprintf (3)          - formatted output conversion
    swprintf (3)         - formatted wide-character output conversion
    vasprintf (3)        - print to allocated string
    vdprintf (3)         - formatted output conversion
    vfprintf (3)         - formatted output conversion
    vfwprintf (3)        - formatted wide-character output conversion
    vprintf (3)          - formatted output conversion
    vsnprintf (3)        - formatted output conversion
    vsprintf (3)         - formatted output conversion
    vswprintf (3)        - formatted wide-character output conversion
    vwprintf (3)         - formatted wide-character output conversion
    wprintf (3)          - formatted wide-character output conversion
    XtAsprintf (3)       - memory management functions
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21

    参考资料

    4.3 Linux系統的線上求助man page與info page
    Linux中man手册的使用 ——以CentOS6.8为例

  • 相关阅读:
    基于多序列脑影像特征的机器学习分类方法
    Java面向对象——多态
    利用碎片时间学起来20220816
    【数据库】01——精通数据库需要掌握这九个维度
    别人都不知道的“好用”网站,让你的效率飞快
    神经网络算法简单例子,神经网络算法应用实例
    AspNetCoreRateLimit应用于MVC项目求助
    鲸鱼优化算法(Matlab代码实现)
    【c++源码】老飞飞源码完整v15源码(包含数据库前端后端源文件)
    如何将matlab中的mat矩阵文件在python中读取出来
  • 原文地址:https://blog.csdn.net/qq_43577613/article/details/126901272
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号