Modèle:Command

De ArchwikiFR
Cette page est un modèle, pour plus d'informations, lire Aide:Modèle

A 'Command' box used to display command output.

This template accepts both named and unnamed parameters.

{{Command|name=command name|output=command output}}
$ command name
command output
{{Command|command=command name|output=command output}}
$ command name
command output
{{Command|command name|command output}}
$ command name
command output

An optional prompt argument can be used to specify an alternative prompt. The default prompt is $, indicating that the command should be run as an unprivileged user. To specify that a command should be run as root, use # as the prompt:

{{Command|privileged command name|privileged command output|prompt=#}}
# privileged command name
privileged command output

This template can be used for any interactive shell. For example, an interactive Python session:

{{Command|import this|The Zen of Python, by Tim Peters|prompt=>>>}}
>>> import this
The Zen of Python, by Tim Peters

Note that parameters containing equals signs and wiki markup should be surrounded by <nowiki> tags.

Long lines will automatically wrap.