Template:Commands: Difference between revisions
imported>Samueldr m Uses common styles for commands. |
Add proper sections |
||
| Line 2: | Line 2: | ||
{{META Pipe Character}} | {{META Pipe Character}} | ||
== Usage == | |||
Take care of always aligning the {{ic|$}} to the left. | Take care of always aligning the {{ic|$}} to the left. | ||
| Line 13: | Line 13: | ||
}}</nowiki>}} | }}</nowiki>}} | ||
{{bc|<nowiki>{{Commands|$ cat /proc/cpuinfo {{!}} grep '^model name' {{!}} head -n1}}</nowiki>}} | |||
{{bc|<nowiki>{{Commands|<nowiki> | |||
# Disregard useless use of cat | |||
$ cat /proc/cpuinfo | grep '^model name' | head -n1 | |||
</nowiki>}}</nowiki>}} | |||
== Example == | |||
{{Commands|$ command-not-found}} | {{Commands|$ command-not-found}} | ||
| Line 20: | Line 27: | ||
$ other-command | $ other-command | ||
}} | }} | ||
{{Commands|$ cat /proc/cpuinfo {{!}} grep '^model name' {{!}} head -n1}} | {{Commands|$ cat /proc/cpuinfo {{!}} grep '^model name' {{!}} head -n1}} | ||