关于 [OPTIONS] 的 Linux man 命令

标签 linux git manpage

假设 git add 命令。当我输入 man git add 时,我得到它的页面。

   SYNOPSIS
   git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
             [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
             [--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing]
             [--] [<pathspec>...]

我有两个问题:

  • git add --verbosegit add -v 一样吗?
  • 对于git,python 等其他命令,--fullNameA 是否与-A 相同? (fullNameA缩写为A)

最佳答案

[--xxx | 中的每个选项-x] 字符相同,所以 [--verbose | -v] 表示 --verbose 将执行与 -v 相同的操作。所有 man 页面都是如此。

关于关于 [OPTIONS] 的 Linux man 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43996117/

相关文章:

linux - bash getopts 验证选项

linux - vim 在现有选项卡中打开缓冲区

python - 在 Python 2 中指定自定义日志记录 Linux 文件路径

eclipse - 如何将 .txt.gz 文件推送到 git

linux - 为什么会出现手册页错误以及如何在 fedora core 19 中修复该错误?

c++ - 在 C++ 中设置本地环境变量

linux - CENTOS 7 和 Red Hat Enterprise Linux Server 版本 6.7 之间不匹配

git - 过滤 git 推送

git - 如何修改更深的 git 历史记录并保留最近的提交结构

c - Linux 没有 C 手册页