获取命令帮助:-h 0 个改进

几乎任何 Linux 命令后跟 -h--help 选项都会列示出命令的相关帮助(简短):

[ andrew@pc01 ~ ]$ du --help
Usage: du [OPTION]... [FILE]...
  or:  du [OPTION]... --files0-from=F
  Summarize disk usage of the set of FILEs, recursively for directories.  Mandatory arguments to long options are mandatory for short options too.
    -0, --null            end each output line with NUL, not newline
    -a, --all             write counts for all files, not just directories
    --apparent-size       print apparent sizes, rather than disk usage; although
                          the apparent size is usually smaller, it may be
                          larger due to holes in ('sparse') files, internal
                          fragmentation, indirect blocks, and the like
    -B,--block-size=SIZE  scale sizes by SIZE before printing them; e.g.,
                          '-BM' prints sizes in units of 1,048,576 bytes;
                          see SIZE format below
   ...

参考:https://dev.to/awwsmm/101-bash-commands-...

本文为 Wiki 文章,邀您参与纠错、纰漏和优化
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!