help命令

  • 功能说明:查看shell内部命令的帮助信息
  • 用法 help [内部命令名]

示例1:不带任何选项的help命令显示所有的shell内部命令

[root@node1 ~]# help

示例2:显示cd命令的使用方法

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
[root@node1 ~]# help cd
cd: cd [-L|[-P [-e]]] [dir]
    Change the shell working directory.
    
    Change the current directory to DIR.  The default DIR is the value of the
    HOME shell variable.
...    
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄