Linux学习笔记—命令帮助

基于CentOS7

1.命令帮助

//由于Linux操作系统的命令很多,所以我们需要借助Linux提供的各种帮助工具。


1.1 帮助工具之一 :利用 whatis 查询命令

[root@localhost ~]# whatis  ls
ls (1)               - 列目录内容
ls (1p)              - list directory contents

1.2 帮助工具之二:利用 “--help” 选项查询命令

[root@localhost ~]# ls --help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all            不隐藏任何以. 开始的项目
  -A, --almost-all        列出除. 及.. 以外的任何项目
      --author            与-l 同时使用时列出每个文件的作者
..........

1.3 帮助工具之三 :利用man查询命令

输入命令会出现以下图片窗口

1.4 帮助工具之四 :利用info查询命令

输入命令弹出以下窗口(q退出)

1.5 帮助工具之五 :其他获取帮助的方法

(1) 查询系统中的帮助文档

[root@localhost ~]# ls -l /usr/share/doc
总用量 80
drwxr-xr-x.  2 root root   32 3月  20 18:04 abattis-cantarell-fonts-0.0.25
drwxr-xr-x.  2 root root   35 3月  20 18:04 abrt-2.1.11
drwxr-xr-x.  3 root root   18 3月  20 18:04 abrt-dbus-2.1.11
drwxr-xr-x.  2 root root   50 3月  20 18:04 accountsservice-0.6.50
drwxr-xr-x.  2 root root   88 3月  20 18:04 acl-2.2.51
drwxr-xr-x.  2 root root 4096 3月  20 18:06 adcli

  (2) 通过官方和获取Linux文档


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mao.O

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值