手册页中带下划线的单词是什么意思?

手册页中带下划线的单词是什么意思?

我见过的大多数命令的man页面中都有一些下划线的单词。这个下划线是什么意思?那是链接吗?如果是,我们如何才能到达那里?

答案1

手册页中大多数带下划线的单词用于强调。它不是一个超链接。

答案2

也来自男人男人

   italic text        replace with appropriate argument.
   [-abc]             any or all arguments within [ ] are optional.
   -a|-b              options delimited by | cannot be used together.

   argument ...       argument is repeatable.
   [expression] ...   entire expression within [ ] is repeatable.

   Exact rendering may vary depending on the output device.  For instance,
   man will usually not be able to render italics when running in a termi‐
   nal, and will typically use underlined or coloured text instead.

答案3

斜体(强调;正如上面清楚回答的那样,不幸的是,它们通常以下划线显示)在手册页的几个部分中用于不同的目的。

In the synopsis, boldface is used for as-is text and italics are used to
indicate  replaceable  arguments.

For  manual  pages  that describe a command (typically in Sections 1 and 8),
the arguments are always specified using italics, even in the SYNOPSIS section.

For manual pages that describe functions (typically in Sections 2  and  3),
the arguments  are  always  specified  using  italics, even in the SYNOPSIS section,
where the rest of the function is specified in bold:

       int myfunction(int argc, char **argv);

Variable names should, like argument names, be specified in italics.

一般格式约定:

If  the  command is short, then it can be included inline in the text, in italic
format, for example, man 7 man-pages.  In this case, it may be worth using  non‐
breaking  spaces  ("\ ")  at  suitable  places  in the command.  Command options
should be written in italics (e.g., -l).

Expressions, if not written on a separate indented line, should be specified  in
italics.  Again, the use of nonbreaking spaces may be appropriate if the expres‐
sion is inlined with normal text.

咨询手册页(7)了解更多详情。

相关内容