linux 查看命令帮助,linux查看命令帮助的方法

1.使用man命令查看

栗子:

执行man命后的帮助信息简介:

帮助标题

功能说明

NAME

命令说明及介绍

SYNOPSIS

基本使用语法

DESCRIPTION

参数选项说明

man帮助页面快捷键

快捷键

功能说明

/string

向下搜索string字符串

?string

向上搜索string字符串

n,N

当使用"/"或"?"搜索 字符串时,n继续按相同方向查询,N则按照反向查询。例子:/string 向下查找string,输入n则继续向下查找string,输入N则向上查找string。?string向上查找string,输入n则继续向上查找,输入N则向下查找string

q

结束本次man帮助

3.2.使用--help参数查看

使用"命令 --help"可以查看简短的命令帮助信息。

[[email protected] ~]# mkdir --help

Usage: mkdir [OPTION]... DIRECTORY...

Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.

-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask

-p, --parents no error if existing, make parent directories as needed

-v, --verbose print a message for each created directory

-Z, --context=CTX set the SELinux security context of each created

3.使用help命令查看bash内置命令

help命令只能查看bash内置的命令。

[[email protected] ~]# help cd

cd: cd [-L|-P] [dir]

Change the shell working directory.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值