Template:Commands: Difference between revisions

Sdht0 (talk | contribs)
Add proper sections
DoggoBit (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude>{{Template}}{{DISPLAYTITLE:Template:commands}}
<noinclude>{{Documentation}}</noinclude><includeonly><pre<noinclude></noinclude>
{{META Pipe Character}}
 
== Usage ==
 
Take care of always aligning the {{ic|$}} to the left.
 
{{bc|<nowiki>{{Commands|$ command-not-found}}</nowiki>}}
 
{{bc|<nowiki>{{Commands|
$ command-not-found
$ other-command
}}</nowiki>}}
 
{{bc|<nowiki>{{Commands|$ cat /proc/cpuinfo {{!}} grep '^model name' {{!}} head -n1}}</nowiki>}}
 
{{bc|<nowiki>{{Commands|&lt;nowiki>
# Disregard useless use of cat
$ cat /proc/cpuinfo | grep '^model name' | head -n1
&lt;/nowiki>}}</nowiki>}}
 
== Example ==
{{Commands|$ command-not-found}}
 
{{Commands|
$ command-not-found
$ other-command
}}
 
{{Commands|$ cat /proc/cpuinfo {{!}} grep '^model name' {{!}} head -n1}}
 
{{Commands|<nowiki>
# Disregard useless use of cat
$ cat /proc/cpuinfo | grep '^model name' | head -n1
</nowiki>}}
 
</noinclude><includeonly><pre<noinclude></noinclude>
   style="{{META Commands Style}}"
   style="{{META Commands Style}}"
>{{{code|{{{1|{{META Error}}}}}}}}</pre<noinclude></noinclude>></includeonly><noinclude><!-- The &lt;noinclude>&lt;/noinclude> hack is needed to allow wiki markup inside the pre tags; reference: http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --></noinclude>
>{{{code|{{{1|{{META Error}}}}}}}}</pre<noinclude></noinclude>></includeonly><noinclude><!-- The &lt;noinclude>&lt;/noinclude> hack is needed to allow wiki markup inside the pre tags; reference: http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --></noinclude>