150命令之线上查询及帮助命令 man hellp

150命令之线上查询及帮助命令

man

查询命令的帮助 man + 命令

  1. NAME
  2.        ls - list directory contents 命令+命令简单说明
  3. SYNOPSIS
  4.        ls [OPTION]... [FILE]... 命令如何使用 名的格式
  5. DESCRIPTION 命令的详细说明
  6.        List information about the FILEs (the current directory by default). Sort entries alphabetically if none of –cftuvSUX
  7.        nor --sort.
  8.        Mandatory arguments to long options are mandatory for short options too.
  9.        -a, --all 命令的参数
  10.               do not ignore entries starting with .
  11.        -A, --almost-all
  12.               do not list implied . and ..
  13.        --author
  14.               with -l, print the author of each file
  15.        -b, --escape
  16.               print octal escapes for nongraphic characters

中文查询man 命令 http://man.linuxde.net/

 

--help

help跟man相同 比man简洁

  1. [root@mysql ~]# ls --help
  2. Usage: ls [OPTION]... [FILE]...
  3. List information about the FILEs (the current directory by default).
  4. Sort entries alphabetically if none of -cftuvSUX nor --sort.
  5. Mandatory arguments to long options are mandatory for short options too.
  6.   -a, --all do not ignore entries starting with .
  7.   -A, --almost-all do not list implied . and ..
  8.       --author with -l, print the author of each file
  9.   -b, --escape print octal escapes for nongraphic characters
  10.       --block-size=SIZE use SIZE-byte blocks. See SIZE format below
  11.   -B, --ignore-backups do not list implied entries ending with ~
  12.   -c with -lt: sort by, and show, ctime (time of last
  13.                                modification of file status information)
  14.                                with -l: show ctime and sort by name
  15.                                otherwise: sort by ctime

bash 中用的命令 man 查不到 但是—help能查到

  1. [root@mysql ~]# alias --help
  2. bash: alias: --: invalid option
  3. alias: usage: alias [-p] [name[=value] ... ]

转载于:https://www.cnblogs.com/jksbaduen/p/7813764.html


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部