美文网首页
linux帮助命令

linux帮助命令

作者: code_nerd | 来源:发表于2017-10-27 11:03 被阅读0次

帮助命令

man 英语 manual 查看非shell命令,包含解释,十分详细

  • man 命令 或配置文件
man man 的结果,截取部分
        1   Executable programs or shell commands //可执行程序或shell命令
       2   System calls (functions provided by the kernel) //查看可被内核调用的帮助
       3   Library calls (functions within program libraries)//查看函数 函数库帮助
       4   Special files (usually found in /dev)//查看特殊文件帮助
       5   File formats and conventions eg /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]

man 1 命令 查看指定的命令帮助

man 8 ifconfig
[root@bogon ~]# whatis ls
ls (1)               - list directory contents

man -f ls 查看命令有几种帮助文档
相当于 whatis

help 命令

help查看命令选项

ls --help 查看ls的命令选项 相当于man ls ,简要显示

help 查看shell内核命令帮助

help cd

如何判断是否为shell 内核命令 type

[root@localhost conf.d]# type cd
cd is a shell builtin//cd 是一个shell内置命令
[root@localhost conf.d]# type man
man is hashed (/bin/man)//非内置
[root@localhost conf.d]# type systemctl
systemctl is hashed (/bin/systemctl)

whereis

查看帮助文件等级
查看命令的配置文件

[root@bogon etc]# whereis passwd
passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1.gz

apropos 配置文件 获取配置文件的简短信息

apropos ls 查看命令中含有ls

info 命令 和man差不多

info是将所有命令的帮助信息放在一起

相关文章

  • Linux帮助命令使用

    Linux系统的帮助命令是最详细的指导文档,帮助命令包括man和info。 man man命令查询linux系统中...

  • Linux命令及操作

    一、Linux查看信息命令 1.Linux 命令帮助 (1)man + 命令 例:man uname (查看...

  • day09

    Linux操作系统 命令的应用:查看帮助文档 help 一般是linux命令自带的帮助信息 ...

  • linux命令帮助的获取

    linux命令帮助的获取

  • 玩转Linux命令行(未完待续)

    一、学习前准备 帮助文档 Linux命令大全(★★★),可以在上面找到你要查找的linux命令 Linux 命令大...

  • Linux系统学习之:常用命令

    man命令 man命令是Linux下的帮助指令,通过man指令可以查看Linux中的指令帮助、配置文件帮助和编程帮...

  • Linux常用基本命令

    Linux命令大全查询每天一个 Linux 命令 命令 --help:帮助信息 man 命令 :使用手册 ctr+...

  • Linux 学习笔记 1

      继 Linux 学习笔记 0 安装 Linux 后开始学习 Linux 命令。首先学习的是获得命令帮助,最常用...

  • Linux帮助命令

    1、man 命令(获取指定命令的帮助,man是manual缩写)例如:man man(获取man的帮助)man l...

  • Linux命令帮助

    1、命令一般格式 COMMAND [ OPTION ] ARGUMENT 2、常见命令 [ifconfig](...

网友评论

      本文标题:linux帮助命令

      本文链接:https://www.haomeiwen.com/subject/lejrpxtx.html