I want to know what is the best way to write and highlight a command? is.
manyMany people (with a lot moreof reputation) write itcommands like this:
$ sudo apt-get update
ifIf someone copies this command as it is, it wontwon't work (mostand I think many people do that, causebecause I remember I did at one point)
someSome people write it like this sudo apt-get update
I think this is used when there is just a single command and it's written within a statement, like I just did.
I choose to write it like most people
sudo apt-get update
I consider this is the most logical way to go about it
my question isMy questions are
- shouldShould I edit out
$
signs? - Does
$
sign meansmean something more than what my ground assumptions are? - Or simply, what is the correct way to do it?
this question was inspired by thought of editing this answer