Outras línguas Deutsch ; English ; español ; français ; português (Portugal) ; português brasileiro ; |
This page is a template. It does not contain information about Mageia, but should be used to present other templates. Avoid experimenting with this template, as you may ruin all pages using this template. If you want to create, modify and test a new template, edit the code on your personal page. Your work is up to your expectations, you can create the template page. You can also visit this page to create your local wiki. You are free to express your opinion about this template. |
About this template
This template should be used when a command is entered as a standard user or as root.
- The first argument displays the command line.
- The second argument allows you to specify another command prompt as the # for example.
- The "withbr" template forces a line break.
- The "stop" template is mandatory to close the start template.
Syntax:
{{output-pt-PT|your command line|prompt=your prompt $ or #}}{{withbr|<nowiki>Your command line return</nowiki>}} |
The message will look like this:
{{output-pt-PT|urpmi --auto-update}}Only superuser is allowed to install packages{{Stop}} |
{{output-pt-PT|urpmi --auto-update}} {{withbr|medium "Core Release" media is up to date medium "Core Updates" is up-to-date medium "Nonfree Release" is up-to-date medium "Nonfree Updates" is up-to-date Packages are up to date}}{{Stop}} |
medium "Core Release" media is up to date medium "Core Updates" is up-to-date medium "Nonfree Release" is up-to-date medium "Nonfree Updates" is up-to-date Packages are up to date
ERROR : A downside of this template is that it does not work if the "=" (equal) or "|" (vertical bar) signs are included in the template. To insert them correctly, you must use the {{=}} and {{!}} syntax.
[1] 12311 bash: /etc/sudoers.d/01wheel: Permission denied chmod: cannot access '/etc/sudoers.d/01wheel': Permission denied [1]+ Exit 1 echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel
[1] 12783 [1]+ Done echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel