I want to know what the best way to write and highlight a command is.
Many people (with a lot of reputation) write commands like this:
$ sudo apt-get update
If someone copies this command as it is, it won't work (and I think many people do that, because I remember I did at one point)
Some 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 questions are
- Should I edit out
$sign mean 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