位置: IT常识 - 正文
推荐整理分享help命令 显示帮助信息(帮助命令的快捷键是什么),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:帮助命令的快捷键是什么,帮助命令的快捷键是什么,帮助命令的快捷键是什么,help命令和--help命令选项的作用,命令帮助,help命令和--help命令选项的作用,帮助命令是什么,命令帮助,内容如对您有帮助,希望把文章链接给更多的朋友!
help命令的功能是用于显示帮助信息,能够输出Shell内部命令的帮助内容,但对于外部命令则无法使用,需要用man或info命令进行查看了。
语法格式:help[参数] 命令名
常用参数:
-d显示命令的简短描述-m使用man手册格式显示帮助信息-s显示短格式的帮助信息参考示例
以默认格式显示指定命令的帮助信息:
[root@linuxcool ~]# help cdcd: cd [-L|[-P [-e]] [-@]] [dir]Change the shell working directory.Change the current directory to DIR. The default DIR is the value of theHOME shell variable.The variable CDPATH defines the search path for the directory containingDIR. Alternative directory names in CDPATH are separated by a colon (:).A null directory name is the same as the current directory. If DIR beginswith a slash (/), then CDPATH is not used.………………省略部分输出信息………………以短格式显示指定命令的帮助信息:
[root@linuxcool ~]# help -s cdcd: cd [-L|[-P [-e]] [-@]] [dir]以简短格式显示指定命令的帮助信息:
[root@linuxcool ~]# help -d cdcd - Change the shell working directory.以man命令格式显示指定命令的帮助信息:
[root@linuxcool ~]# help -m cdNAMEcd - Change the shell working directory.SYNOPSIScd [-L|[-P [-e]] [-@]] [dir]DESCRIPTIONChange the shell working directory.Change the current directory to DIR. The default DIR is the value of theHOME shell variable.………………省略部分输出信息………………与该功能相关的Linux命令:initctl命令 管理init守护进程grpconv命令 开启群组的投影密码logsave命令 将输出信息保存到指定的日志文件中hostname命令 显示和设置系统的主机名restorecon命令 恢复文件安全上下文crontab命令 管理定时计划任务set命令 显示与设置Shell变量信息pgrep命令 检索进程PID号码aulastlog命令 打印最近登陆记录[重]journalctl命令 检索systemd日志上一篇:protoize命令 添加函数原型(prompt命令用法)
下一篇:strace命令 跟踪系统调用信息(跟踪数据包命令)
友情链接: 武汉网站建设