Moderators, translator
455
edits
(Basic Template for showing a terminal command as root or user) |
m (fixed sample header) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Template}} | {{Template}} | ||
Sample root command | ===Sample root command=== | ||
<pre>{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}</pre> | <pre>{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}}</pre> | ||
===Sample user command=== | |||
{{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}} | {{CommandTemplate|color=red|prompt=root #|command=systemctl enable --now systemd-timesyncd}} | ||
<pre>{{CommandTemplate|color=green|prompt=user $|command=cat ~/.profile}}</pre> | <pre>{{CommandTemplate|color=green|prompt=user $|command=cat ~/.profile}}</pre> | ||
{{CommandTemplate|color=lawngreen|prompt=user $|command=cat ~/.profile}} | {{CommandTemplate|color=lawngreen|prompt=user $|command=cat ~/.profile}} | ||
</noinclude><includeonly><div style="display:block;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} > </span><span style="color:white;background-color:black;">{{{command}}}</span></div></includeonly> | </noinclude><includeonly><div style="display:block;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} > </span><span style="color:white;background-color:black;">{{{command}}}</span></div></includeonly> |